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

Javac should be shielded from client code errors in JSR 199

    XMLWordPrintable

Details

    • b73
    • generic
    • generic
    • Verified

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              jjg Jonathan Gibbons
              ahe Peter Ahe
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: