Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.1
-
None
-
Operating System: All
Platform: All
-
31608
Description
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 ))