Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8276657

XSLT compiler tries to define a class with empty name

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 18
    • Fix Version/s: 18
    • Component/s: xml
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b27

      Description

      The proposed fix for JDK-8276241 causes two JAXP tests to fail because they try to define a class called "die/verwandlung/". It is illegal for a class name to end in a '/'.

      The failing tests are javax/xml/jaxp/functional/javax/xml/transform/ptests/URIResolverTest.java and testcase05 and testcase06 of javax/xml/jaxp/functional/javax/xml/transform/ptests/SAXTFactoryTest.java.

      The tests fail with the following error:
          javax.xml.transform.TransformerConfigurationException: Could not load the translet class 'die.verwandlung.'.
      which is caused by:
          java.lang.ClassFormatError: Illegal class name "die/verwandlung/" in class file <Unknown>

      The proposed fix for JDK-8276241 is:
      --- a/src/hotspot/share/classfile/classFileParser.cpp
      +++ b/src/hotspot/share/classfile/classFileParser.cpp
      @@ -4855,7 +4855,7 @@ static const char* skip_over_field_name(const char* const name,
           }
           return (not_first_ch) ? old_p : NULL;
         }
      - return (not_first_ch) ? p : NULL;
      + return (not_first_ch && !last_is_slash) ? p : NULL;
       }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              joehw Joe Wang
              Reporter:
              hseigel Harold Seigel
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: