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

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8
    • 8
    • tools
    • None
    • b71
    • 8
    • b103
    • Verified

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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: