JDK-6420500 : AbstractProcessor.init(null) doesn't trow NPE
  • Type: Bug
  • Component: core-libs
  • Sub-Component: javax.annotation.processing
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: generic
  • CPU: generic
  • Submitted: 2006-05-02
  • Updated: 2011-01-19
  • Resolved: 2006-05-05
Related Reports
Relates :  
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.

Comments
EVALUATION Not reproducible as of build 83; a null test was added as part of the fix for 6376102.
05-05-2006