bugMibble MIB Parser - Bugs: bug #4893, Mib.getSymbolByValue(String) not...

 
 

bug #4893: Mib.getSymbolByValue(String) not OK?

Submitter:  Invalid User ID <#22246>
Submitted:  Fri 22 Aug 2003 07:20:56 AM UTC
   
 
Severity:  5 - Major Item Group:  Software
Status:  Fixed Privacy:  Public
Assigned to:  cederberg Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 22 Aug 2003 03:27:59 PM UTC, comment #2: 

Version 2.1 has been released with a fix for this bug.

Per Cederberg <cederberg>
Group administrator
Fri 22 Aug 2003 02:02:51 PM UTC, comment #1: 

Yes, you are perfectly right. The toString() fix you suggested must also be added to the getSymbolByValue(MibValue) method, however. I'll try to get a new version of Mibble with this fix released really soon.

Many thanks for finding and fixing this, Nigel!

Per Cederberg <cederberg>
Group administrator
Fri 22 Aug 2003 07:20:56 AM UTC, original submission:  

public MibValueSymbol getSymbolByValue(String value) cannot work as symbolValueMap does not use Strings as keys.

Suggest modfiying Mib.validate():-
// CHANGE by NRM : use string as key so that  the method
// getSymbolByValue(String value) can work.
//                    symbolValueMap.put(value.getValue(), value);
                    symbolValueMap.put(value.getValue().toString(), value);

Invalid User ID <#22246>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2003-08-22 cederberg StatusNone None
    Open/ClosedOpen None
2003-08-22 cederberg Assigned toNone None

Back to the top

Powered by Savane 3.13-c373.
Corresponding source code