Call to Pattern.flags() to check Pattern.CANNON_EQ results in java.lang.InternalError on Sparc machine having Solaris8.
It however runs fine on Linux6.2, Windows 2000 and Solaris8 on Intel. And test for all other fields passes.
i.e
import java.util.regex.*;
public class Flags {
public static void main(String[] args) throws Exception {
Pattern p = Pattern.compile("aaa",Pattern.CANON_EQ);
if(p.flags() != Pattern.CANON_EQ )
System.out.println("False");
else
System.out.println("true");
}
}
Gives
Exception in thread "main" java.lang.InternalError: Normalizer access failure.
at java.util.regex.Pattern.normalize(Pattern.java:710)
at java.util.regex.Pattern.compile(Pattern.java:940)
at java.util.regex.Pattern.<init>(Pattern.java:647)
at java.util.regex.Pattern.compile(Pattern.java:556)
at Flags.main(Flags.java:8)
It however runs fine on Linux6.2, Windows 2000 and Solaris8 on Intel. And test for all other fields passes.
i.e
import java.util.regex.*;
public class Flags {
public static void main(String[] args) throws Exception {
Pattern p = Pattern.compile("aaa",Pattern.CANON_EQ);
if(p.flags() != Pattern.CANON_EQ )
System.out.println("False");
else
System.out.println("true");
}
}
Gives
Exception in thread "main" java.lang.InternalError: Normalizer access failure.
at java.util.regex.Pattern.normalize(Pattern.java:710)
at java.util.regex.Pattern.compile(Pattern.java:940)
at java.util.regex.Pattern.<init>(Pattern.java:647)
at java.util.regex.Pattern.compile(Pattern.java:556)
at Flags.main(Flags.java:8)
- duplicates
-
JDK-4392283 java.lang.reflect.AccessibleObject.setAccessible() broken in merlin B42
-
- Closed
-