-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.1
-
Fix Version/s: 2.0
-
Labels:None
-
Environment:
Operating System: All
Platform: All
-
Bugzilla Id:31608
Hi,
please consider adding 3 lines to Registry.convertValue to support longs. The
method is used in Tomcats manager webapp (manager/jmxproxy) and many of tomcats
internal JMX parameters are longs and can therefore not yet been set via the
manager webapp.
The fix should be very simple, just change
} else if( "java.lang.Integer".equals( type ) ||
"int".equals( type ))
"boolean".equals( type )) { objValue=new Boolean( value ); }
to
} else if( "java.lang.Integer".equals( type ) ||
"int".equals( type )) { objValue=new Integer( value ); }
else if( "java.lang.Long".equals( type ) ||
"long".equals( type ))
else if( "java.lang.Boolean".equals( type ) ||
"boolean".equals( type ))