javax/rmi/PortableRemoteObject/ConcurrentHashMapTest.java
This test need to do build for pre-generated _Tie and _Stub, but with latest nightly jtreg, it failed with:
Error. Parse Exception: Bad classname provided for `build': _HelloImpl_Tie
See the test build tag:
* @build Test HelloInterface HelloServer HelloClient HelloImpl _HelloImpl_Tie _HelloInterface_Stub ConcurrentHashMapTest
And the files:
$ ls javax/rmi/PortableRemoteObject/_*.java
javax/rmi/PortableRemoteObject/_HelloImpl_Tie.java javax/rmi/PortableRemoteObject/_HelloInterface_Stub.java
$ head -2 javax/rmi/PortableRemoteObject/_HelloImpl_Tie.java
// Tie class generated by rmic, do not edit.
// Contents subject to change without notice.
With latest jtreg change, it seems that file start with "_" is considered as bad classname (see related jtreg change below):
src/share/classes/com/sun/javatest/regtest/BuildAction.java
+ Pattern p = Pattern.compile("(?i)([a-z_][.a-z0-9_$]*/)?(([a-z][.a-z0-9_$]*)(\\.\\*)?|\\*|module-info)");
for (String currArg : args) {
- if ((currArg.indexOf(File.separatorChar) != -1)
- || (currArg.indexOf('/') != -1))
+ if (!p.matcher(currArg).matches()) {
throw new ParseException(BUILD_BAD_CLASSNAME + currArg);
+ }
http://hg.openjdk.java.net/code-tools/jtreg/rev/d25ce6aa3f50
This test need to do build for pre-generated _Tie and _Stub, but with latest nightly jtreg, it failed with:
Error. Parse Exception: Bad classname provided for `build': _HelloImpl_Tie
See the test build tag:
* @build Test HelloInterface HelloServer HelloClient HelloImpl _HelloImpl_Tie _HelloInterface_Stub ConcurrentHashMapTest
And the files:
$ ls javax/rmi/PortableRemoteObject/_*.java
javax/rmi/PortableRemoteObject/_HelloImpl_Tie.java javax/rmi/PortableRemoteObject/_HelloInterface_Stub.java
$ head -2 javax/rmi/PortableRemoteObject/_HelloImpl_Tie.java
// Tie class generated by rmic, do not edit.
// Contents subject to change without notice.
With latest jtreg change, it seems that file start with "_" is considered as bad classname (see related jtreg change below):
src/share/classes/com/sun/javatest/regtest/BuildAction.java
+ Pattern p = Pattern.compile("(?i)([a-z_][.a-z0-9_$]*/)?(([a-z][.a-z0-9_$]*)(\\.\\*)?|\\*|module-info)");
for (String currArg : args) {
- if ((currArg.indexOf(File.separatorChar) != -1)
- || (currArg.indexOf('/') != -1))
+ if (!p.matcher(currArg).matches()) {
throw new ParseException(BUILD_BAD_CLASSNAME + currArg);
+ }
http://hg.openjdk.java.net/code-tools/jtreg/rev/d25ce6aa3f50