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

XSLT compiler tries to define a class with empty name

XMLWordPrintable

    • b27

        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;
         }

              joehw Joe Wang
              hseigel Harold Seigel (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: