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

AbstractProcessor.init(null) doesn't trow NPE

    XMLWordPrintable

    Details

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

      Description

      AbstractProcessor.init() doesn't specify any behavior if parameter penv is equal to null.
      Parameters:
          penv - environment to access facilities the tool framework provides to the processor

      Hence, it should obey the following spec:
      Unless otherwise specified, methods in this package should be expected to throw a NullPointerException if given a null argument.

      However NPE is not thrown if penv is equal to null.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              darcy Joe Darcy
              Reporter:
              ydanilev Yury Danilevich (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: