Uploaded image for project: 'Commons Modeler'
  1. Commons Modeler
  2. MODELER-9

[modeler] Registry.convertValue doesn't support longs

    XMLWordPrintableJSON

    Details

    • 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

      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 ))

      { objValue=new Integer( value ); } else if( "java.lang.Boolean".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 ))

      { objValue=new Long( value ); }

      else if( "java.lang.Boolean".equals( type ) ||
      "boolean".equals( type ))

      { objValue=new Boolean( value ); }

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rainer.jung@kippdata.de Rainer Jung
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: