[OVSDB-20] ipfix.getObs_domain_id() is declared as returning OvsDBSet<Integer> but actually returns OvsDBSet<BigInteger> Created: 02/Jun/14  Updated: 03/May/18  Resolved: 23/Sep/14

Status: Resolved
Project: ovsdb
Component/s: API
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Jim O Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Windows
Platform: PC


External issue ID: 1126

 Description   

ipfix.getObs_domain_id() is declared as returning OvsDBSet<Integer> but actually returns OvsDBSet<BigInteger>

This causes a runtime ClassCast exception.

Here are some code snippets:

final OvsDBSet<UUID> ipfixSet = bridge.getIpfix();
if (ipfixSet != null && ipfixSet.size() > 0)
{
final UUID ipfixUUID = ipfixSet.iterator().next();
final IPFIX ipfix = (IPFIX) ovsdbConfigService.getRow(ovsNode, IPFIX.NAME.getName(), ipfixUUID.toString());
if (ipfix != null)
{
final OvsDBSet<Integer> obsDomainIdSet = ipfix.getObs_domain_id();
if (obsDomainIdSet != null && obsDomainIdSet.size() > 0)
{
final Integer i = obsDomainIdSet.iterator().next();

That last line causes a classcast exception.



 Comments   
Comment by Dave Tucker [ 23/Sep/14 ]

This was resolved when we the topic.schema branch was merged

Generated at Wed Feb 07 20:35:18 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.