[jboss-jira] [JBoss JIRA] Created: (JBAS-5476) JDK6: org.jboss.test.jbossmx.compliance.objectname
Shelly McGowan (JIRA)
jira-events at lists.jboss.org
Wed Apr 23 18:51:08 EDT 2008
JDK6: org.jboss.test.jbossmx.compliance.objectname
--------------------------------------------------
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