JDK-6468813 : Annotation Processor behaves differently when the Java file is compiled with debug option
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 2.0
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_9
  • CPU: sparc
  • Submitted: 2006-09-08
  • Updated: 2010-04-02
  • Resolved: 2006-09-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6Resolved
Related Reports
Duplicate :  
Description
I am attaching a Java file to reproduce the problem.
Follow these steps to reproduce the problem.

1) javac -g  -d classes pkg/Bar.java
2) cd classes
3) $JAVA_HOME/bin schemagen pkg.Bar 

You will get something like this
D:\fresh\classes>%JAVA_HOME%\bin\schemagen pkg.Bar
error: The type of the getter is java.util.List<java.lang.Integer> but that of t
he setter is java.util.List. They have to be the same.
        this problem is related to the following location:
                at pkg.Bar.getNumbers (Unknown Source)
                at pkg.Bar (Unknown Source)
        this problem is related to the following location:
                at pkg.Bar.setNumbers (Unknown Source)
                at pkg.Bar (Unknown Source)
1 error

The same file when compiled without debug option works fine.
Seems Schemagen is getting different information from the class file when compiled with debug option.