]
Shelly McGowan resolved JBAS-5476.
----------------------------------
Fix Version/s: JBossAS-5.0.0.CR1
Resolution: Done
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
Fix For: JBossAS-5.0.0.CR1
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: