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

(fp.bugs 2667) compiler exception after compiler error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 1.0
    • tools
    • sparc
    • solaris_2.4

      >From: Steve Blackburn <###@###.###>

      An error in my code generated the correct compiler error followed by
      the compiler producing a java.lang.NullPointerExceptionand then the
      compiler seemed to go into a strange state error messages suggesting
      that the compiler was re-parsing the source and complaining that each
      declaration had already beenmade. After fixing my casting error the
      compiler once againproduced the nullPointerException not complaining
      about thecasting error but otherwise generating the same error
      messagesand the request for me to file a bug report. Further
      testingsuggests that the problem was with the class files thatwere in
      the directory from previous runs. Removing all classfiles from the
      directory and recompiling solved the problem.In the context of the!
      'stale' class files being removed the casting error was generated
      correctly without the exception.

            fyellinsunw Frank Yellin (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: