-
Bug
-
Resolution: Fixed
-
P2
-
1.4.1_03, 1.4.2
-
b21
-
x86
-
linux, windows_2000
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2068146 | 5.0 | Neal Gafter | P2 | Resolved | Fixed | tiger |
Name: rmT116609 Date: 04/14/2003
FULL PRODUCT VERSION :
java version "1.4.2-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-beta-b19)
Java HotSpot(TM) Client VM (build 1.4.2-beta-b19, mixed mode)
FULL OS VERSION :
Linux skiffserv 2.5.66 #3 Fri Mar 28 12:35:32 EST 2003 i686 unknown unknown GNU/Linux
Solaris 2.8
A DESCRIPTION OF THE PROBLEM :
The 1.4.2-beta javac compiler throws a NullPointerException in com.sun.tools.javac.v8.comp.Flow.visitTry(Flow.java:873) when compiling legal java code. The 1.4.1_02 compiler handles this code without and problems.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Download http://www.cag.lcs.mit.edu/~cananian/sunbug.tar.gz and uncompress.
% cd SUNBUG
% javac -classpath Harpoon.jar:cup.jar -source 1.4 Java12.java
EXPECTED VERSUS ACTUAL BEHAVIOR :
Successful compilation (no output).
Crashes (see error message below).
ERROR MESSAGES/STACK TRACES THAT OCCUR :
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 checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.NullPointerException
at com.sun.tools.javac.v8.comp.Flow.visitTry(Flow.java:873)
at com.sun.tools.javac.v8.tree.Tree$Try.accept(Tree.java:697)
at com.sun.tools.javac.v8.tree.TreeScanner.scan(TreeScanner.java:33)
at com.sun.tools.javac.v8.comp.Flow.scanStat(Flow.java:483)
at com.sun.tools.javac.v8.comp.Flow.scanStats(Flow.java:492)
at com.sun.tools.javac.v8.comp.Flow.visitBlock(Flow.java:711)
at com.sun.tools.javac.v8.tree.Tree$Block.accept(Tree.java:547)
at com.sun.tools.javac.v8.tree.TreeScanner.scan(TreeScanner.java:33)
at com.sun.tools.javac.v8.comp.Flow.scanStat(Flow.java:483)
at com.sun.tools.javac.v8.comp.Flow.visitDoLoop(Flow.java:721)
at com.sun.tools.javac.v8.tree.Tree$DoLoop.accept(Tree.java:565)
at com.sun.tools.javac.v8.tree.TreeScanner.scan(TreeScanner.java:33)
at com.sun.tools.javac.v8.comp.Flow.scanStat(Flow.java:483)
at com.sun.tools.javac.v8.comp.Flow.scanStats(Flow.java:492)
at com.sun.tools.javac.v8.comp.Flow.visitBlock(Flow.java:711)
at com.sun.tools.javac.v8.tree.Tree$Block.accept(Tree.java:547)
at com.sun.tools.javac.v8.tree.TreeScanner.scan(TreeScanner.java:33)
at com.sun.tools.javac.v8.comp.Flow.scanStat(Flow.java:483)
at com.sun.tools.javac.v8.comp.Flow.visitMethodDef(Flow.java:665)
at com.sun.tools.javac.v8.tree.Tree$MethodDef.accept(Tree.java:482)
at com.sun.tools.javac.v8.tree.TreeScanner.scan(TreeScanner.java:33)
at com.sun.tools.javac.v8.comp.Flow.visitClassDef(Flow.java:615)
at com.sun.tools.javac.v8.tree.Tree$ClassDef.accept(Tree.java:443)
at com.sun.tools.javac.v8.tree.TreeScanner.scan(TreeScanner.java:33)
at com.sun.tools.javac.v8.comp.Flow.analyzeTree(Flow.java:1161)
at com.sun.tools.javac.v8.JavaCompiler.compile(JavaCompiler.java:361)
at com.sun.tools.javac.v8.Main.compile(Main.java:569)
at com.sun.tools.javac.Main.compile(Main.java:36)
at com.sun.tools.javac.Main.main(Main.java:27)
cananian@skiffserv:~/SUNBUG$
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
See 'steps to reproduce'.
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Use the 1.4.1_02 compiler.
Release Regression From : 1.4.1_02
The above release value was the last known release where this
bug was known to work. Since then there has been a regression.
(Review ID: 184054)
======================================================================
- backported by
-
JDK-2068146 REGRESSION: NullPointerException in Flow.visitTry(Flow.java:873)
-
- Resolved
-