Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7901557

_HelloImpl_Tie is considered as bad classname provided for build

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • None
    • jtreg4.1
    • tools
    • None

      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

            jjg Jonathan Gibbons
            amlu Amy Lu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: