JDK-8009367 : Wrong kind of name used in comparison in javax.lang.model code for repeatable annotations
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2013-03-04
  • Updated: 2013-08-15
  • Resolved: 2013-08-06
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 8
8 b103Fixed
Related Reports
Relates :  
Description
From Jon;

In JavacElements, round about line 175, why do you use getSimpleName?  If you're comparing against the flatname, don't you want the full name of the class?

In JavacElements:

        String annoTypeName = annoType.getSimpleName();
        String containerTypeName = containerType.getSimpleName();

Later we have:

            if (annoTypeName.equals(rawAttributes[i].type.tsym.flatName().toString())) {

and:
            containerTypeName.equals(rawAttributes[i].type.tsym.flatName().toString())) {
 
Comments
I think we want Class.getCanonicalName()
14-05-2013