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

AbstractProcessor.init(null) doesn't trow NPE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • None
    • 6
    • core-libs

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: