Wrong kind of name used in comparison in javax.lang.model code for repeatable annotations

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: 8
    • Component/s: tools
    • None
    • b71
    • 8
    • b103
    • Verified

      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())) {
       

            Assignee:
            Joel Borggrén-Franck (Inactive)
            Reporter:
            Joel Borggrén-Franck (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: