-
Bug
-
Resolution: Fixed
-
P3
-
5.0, 6
-
b73
-
generic
-
generic
-
Verified
When an error happens in client code called from JSR 199
functions, the compiler will still print the file bug
report message. However, these errors are not bugs in
javac, but bugs in the clients. The errors should be
propagated to the client code.
For example, this is the output from the program in bug
6265137:
An exception has occurred in the compiler ($(RELEASE)). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.NullPointerException
at Test10$1.problemFound(Test10.java:10)
at com.sun.tools.javac.util.Log.writeDiagnostic(Log.java:430)
at com.sun.tools.javac.util.Log.report(Log.java:398)
at com.sun.tools.javac.util.Log.mandatoryNote(Log.java:380)
at com.sun.tools.javac.util.MandatoryWarningHandler.reportDeferredDiagnostic(MandatoryWarningHandler.java:149)
at com.sun.tools.javac.comp.Check.reportDeferredDiagnostics(Check.java:161)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:556)
at com.sun.tools.javac.main.Main.compile(Main.java:648)
at com.sun.tools.javac.Tool.run(Tool.java:95)
at Test10.test(Test10.java:20)
at Test10.main(Test10.java:24)
###@###.### 2005-05-04 17:57:18 GMT
functions, the compiler will still print the file bug
report message. However, these errors are not bugs in
javac, but bugs in the clients. The errors should be
propagated to the client code.
For example, this is the output from the program in bug
6265137:
An exception has occurred in the compiler ($(RELEASE)). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.NullPointerException
at Test10$1.problemFound(Test10.java:10)
at com.sun.tools.javac.util.Log.writeDiagnostic(Log.java:430)
at com.sun.tools.javac.util.Log.report(Log.java:398)
at com.sun.tools.javac.util.Log.mandatoryNote(Log.java:380)
at com.sun.tools.javac.util.MandatoryWarningHandler.reportDeferredDiagnostic(MandatoryWarningHandler.java:149)
at com.sun.tools.javac.comp.Check.reportDeferredDiagnostics(Check.java:161)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:556)
at com.sun.tools.javac.main.Main.compile(Main.java:648)
at com.sun.tools.javac.Tool.run(Tool.java:95)
at Test10.test(Test10.java:20)
at Test10.main(Test10.java:24)
###@###.### 2005-05-04 17:57:18 GMT
- duplicates
-
JDK-6323814 DiagnosticListener will fail to handle NullPointerException
- Closed
- relates to
-
JDK-6265137 setOption() and setExtendedOption() of JavacTool will throw exception for some defined options
- Closed