Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8009367

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 8
    • 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())) {
       

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

              Created:
              Updated:
              Resolved: