-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
1.4.2
-
x86
-
linux, solaris_8, windows_xp
Name: asR10013 Date: 09/24/2002
Filed By : J2SE-SQA [###@###.###
JDK : JDK1.4.2-b02
Testbase : RegTest-test
Platform[s] : RedHat Linux 7.2 (GNOME), Windows XP Home, Solaris 8 (sparc), Solaris 8 (x86)
Falling test[s]:
sun/security/provider/PolicyParser/BogusGrants.java
The Regtest-test test sun/security/provider/PolicyParser/BogusGrants.java fails to compile
on JDK1.4.2-b02. The test passes on JDK1.4.1-b21.
This happens because the test uses the '$' character in class names:
(sun.security.provider.PolicyParser$ParsingException p) {
This approach used to work with JDK1.4.1 but fails with JDK1.4.2-b02.
After I had changed '$' to '.':
(sun.security.provider.PolicyParser.ParsingException p) {
the test passed on both JDK1.4.1-b21 and JDK1.4.2-b02.
jtr file location:
==================
/net/jtgb4u4c.eng/export/sail15/results/mantis/b02/regtest/linux/redhat7.2_gnome_smp__linux-24/workDir/test/sun/security/provider/PolicyParser/BogusGrants.jtr
How to reproduce:
=================
Run the following script (you may need to change variables)
--- script start ---
#!/bin/bash
PS=':'
JDK=/net/linux-15/export/home/java/jdk1.4.2/linux
TEST_BASE=/net/linux-15/export/home/java/regtest
TEST_BASE_ROOT=$TEST_BASE/test
TEST_PACKAGE=sun/security/provider/PolicyParser
TEST_SHORT_NAME=BogusGrants
TEST_NAME=$TEST_PACKAGE/$TEST_SHORT_NAME
JT=/net/linux-15/export/home/java/jct/lib/javatest.jar
JTREG=/net/linux-15/export/home/java/jct/lib/jtreg.jar
TEST_SRC=$TEST_BASE_ROOT/${TEST_NAME}.java
export CLASSPATH=.${PS}${JDK}${PS}${JDK}/lib/tools.jar${PS}${TEST_BASE}${PS}${TEST_BASE_ROOT}/${TEST_PACKAGE}${PS}${JT}${PS}${JTREG}
$JDK/bin/javac -g -classpath $CLASSPATH -d . $TEST_SRC
$JDK/bin/java -cp $CLASSPATH $TEST_SHORT_NAME p001.policy p002.policy p003.policy p004.policy
--- script end ---
Test output:
============
net/linux-15/export/home/java/regtest/test/sun/security/provider/PolicyParser/BogusGrants.java:28: cannot resolve symbol
symbol : class PolicyParser$ParsingException
location: package provider
(sun.security.provider.PolicyParser$ParsingException p) {
^
An exception has occurred in the compiler (1.4.2-beta). Please file a bug at the Java Developer Connection (http://java.sun.com/cgi-bin/bugreport.cgi) after
hecking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.AssertionError: unexpected kind: 256 in tree System.out.println
at com.sun.tools.javac.v8.comp.Attr.checkId(Attr.java:1216)
at com.sun.tools.javac.v8.comp.Attr.visitSelect(Attr.java:1093)
at com.sun.tools.javac.v8.tree.Tree$Select.accept(Tree.java:1091)
at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java:198)
at com.sun.tools.javac.v8.comp.Attr.attribExpr(Attr.java:213)
at com.sun.tools.javac.v8.comp.Attr.visitApply(Attr.java:717)
at com.sun.tools.javac.v8.tree.Tree$Apply.accept(Tree.java:877)
at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java:198)
at com.sun.tools.javac.v8.comp.Attr.attribExpr(Attr.java:221)
at com.sun.tools.javac.v8.comp.Attr.visitExec(Attr.java:556)
at com.sun.tools.javac.v8.tree.Tree$Exec.accept(Tree.java:773)
at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java:198)
at com.sun.tools.javac.v8.comp.Attr.attribStat(Attr.java:235)
at com.sun.tools.javac.v8.comp.Attr.attribStats(Attr.java:253)
at com.sun.tools.javac.v8.comp.Attr.visitBlock(Attr.java:384)
at com.sun.tools.javac.v8.tree.Tree$Block.accept(Tree.java:547)
at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java:198)
at com.sun.tools.javac.v8.comp.Attr.attribStat(Attr.java:235)
at com.sun.tools.javac.v8.comp.Attr.visitTry(Attr.java:475)
at com.sun.tools.javac.v8.tree.Tree$Try.accept(Tree.java:697)
at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java:198)
at com.sun.tools.javac.v8.comp.Attr.attribStat(Attr.java:235)
at com.sun.tools.javac.v8.comp.Attr.attribStats(Attr.java:253)
at com.sun.tools.javac.v8.comp.Attr.visitBlock(Attr.java:384)
at com.sun.tools.javac.v8.tree.Tree$Block.accept(Tree.java:547)
at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java:198)
at com.sun.tools.javac.v8.comp.Attr.attribStat(Attr.java:235)
at com.sun.tools.javac.v8.comp.Attr.visitForLoop(Attr.java:410)
at com.sun.tools.javac.v8.tree.Tree$ForLoop.accept(Tree.java:605)
at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java:198)
at com.sun.tools.javac.v8.comp.Attr.attribStat(Attr.java:235)
at com.sun.tools.javac.v8.comp.Attr.attribStats(Attr.java:253)
at com.sun.tools.javac.v8.comp.Attr.visitBlock(Attr.java:384)
at com.sun.tools.javac.v8.tree.Tree$Block.accept(Tree.java:547)
at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java:198)
at com.sun.tools.javac.v8.comp.Attr.attribStat(Attr.java:235)
at com.sun.tools.javac.v8.comp.Attr.visitMethodDef(Attr.java:341)
at com.sun.tools.javac.v8.tree.Tree$MethodDef.accept(Tree.java:482)
at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java:198)
at com.sun.tools.javac.v8.comp.Attr.attribStat(Attr.java:235)
at com.sun.tools.javac.v8.comp.Attr.attribClassBody(Attr.java:1362)
at com.sun.tools.javac.v8.comp.Attr.attribClass(Attr.java:1340)
at com.sun.tools.javac.v8.comp.Attr.attribClass(Attr.java:1316)
at com.sun.tools.javac.v8.JavaCompiler.compile(JavaCompiler.java:355)
at com.sun.tools.javac.v8.Main.compile(Main.java:567)
at com.sun.tools.javac.Main.compile(Main.java:36)
at com.sun.tools.javac.Main.main(Main.java:27)
======================================================================
- duplicates
-
JDK-4750977 Regression test BogusGrants broken after javac changes
- Closed