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

missing processingEnv assignment in overridden init results in too minimal exception notice.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: 6
    • Fix Version/s: 8
    • Component/s: core-libs
    • Labels:

      Description

      When @SupportedSourceVersion is not used, if user overrides the init method and does not assign to processingEnv, a null pointer exception results when processor is run. The error message is kind of minimal

      error: Exception thrown while constructing Processor object: java.lang.NullPointerExceptioN

      and give little indication of what's wrong. Maybe more of the stack track may help(?).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              darcy Joe Darcy
              Reporter:
              ssides Steve Sides
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: