JDK-5052910 : need option to turn javac errors into apt errors
  • Type: Enhancement
  • Component: tools
  • Sub-Component: apt
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: generic
  • CPU: generic
  • Submitted: 2004-05-25
  • Updated: 2009-09-22
  • Resolved: 2009-09-22
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
Failing tests	: javam/neg/IncorrectAnnotation

In light of 5043518, "error content printed but no error reported" being closed to allow generation of broken code, it would be nice to have an option to turn on javac warnings and errors at apt time rather than have to wait until code is compiled.  
Without this, it can allow unintended errors into code for the sake of allowing incomplete code to be operated on.

Comments
EVALUATION The apt tool and its API have been deprecated as of JDK 7 (6381698). By default, issues with annotation processing will only be fixed in the standardized JSR 269 processing in javac as of JDK 6. Since standardized annotation processing is integrated into javac, this issue should be considered as part of a more unified effort to improve annotation processing error handing for JSR 269. Closing as will not fix.
22-09-2009

CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mustang
23-07-2004

EVALUATION It might be good to have javac-generated warnings and errors added to apt's warning count. This, in conjunction with the -Werror option, would give the submitter what he is requesting. ###@###.### 2004-06-02 This is a reasonable request and would allow an assertion to be made about all the generated source code -- i.e. when developing an annotation processor, it could be useful to have the annotation processing fail-fast if any malformed source code is generated. ###@###.### 2004-06-10 Will consider for post-Tiger. ###@###.### 2004-07-21
10-06-2004