Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-5031 Make AS5 compile/run under Java6
  3. JBAS-5476

JDK6: org.jboss.test.jbossmx.compliance.objectname.MalformedTestCase

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Major Major
    • JBossAS-5.0.0.CR1
    • None
    • JMX
    • None

      From the JDK 6 adoption guide:
      The ObjectName functionality has been extended in Java SE 6 such that you can put a wildcard (* and/or ?) anywhere in a value, e.g., key=a*b as well as key=*. The asterisk matches any sequence of zero or more characters, while the question mark matches any single character.

      The tests using the following BAD_KEYVALS no longer throw the expected MalformedObjectNameException when running with JDK 6
      // strings containing illegal chars to use in key or value positions
      public static final String[] BAD_KEYVALS = {
      "som?thing", // cannot contain pattern chars
      "som*thing", // cannot contain pattern chars
      };
      AssertionFailedError: invalid object name: domain:key1=som*thing
      invalid object name: domain:key1=som?thing

              smcgowan@redhat.com Shelly McGowan (Inactive)
              smcgowan@redhat.com Shelly McGowan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: