[jboss-jira] [JBoss JIRA] Updated: (JBAS-5476) JDK6: org.jboss.test.jbossmx.compliance.objectname.MalformedTestCase
Shelly McGowan (JIRA)
jira-events at lists.jboss.org
Wed Apr 30 15:54:18 EDT 2008
[ http://jira.jboss.com/jira/browse/JBAS-5476?page=all ]
Shelly McGowan updated JBAS-5476:
---------------------------------
Summary: JDK6: org.jboss.test.jbossmx.compliance.objectname.MalformedTestCase (was: JDK6: org.jboss.test.jbossmx.compliance.objectname)
> JDK6: org.jboss.test.jbossmx.compliance.objectname.MalformedTestCase
> --------------------------------------------------------------------
>
> Key: JBAS-5476
> URL: http://jira.jboss.com/jira/browse/JBAS-5476
> Project: JBoss Application Server
> Issue Type: Sub-task
> Security Level: Public(Everyone can see)
> Components: JMX
> Reporter: Shelly McGowan
> Assigned To: Shelly McGowan
>
> 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
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list