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

apt incorrectly uses Scope.table

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 7
    • 7
    • tools
    • apt
    • b74
    • generic
    • generic
    • Not verified

      203 if (symbol.members() != null) {
      204 for(Scope.Entry e: symbol.members().table)
      205 computeAnnotationSet(e.sym, annotationSet);
      206 }

      Line 204:

      It is hard to believe this line is correct, since "table" is just the set of hash buckets for the scope.


      It probably should read:

                  if (symbol.members() != null) {
                      for(Scope.Entry e = symbol.members().elems; e != null; e = e.sibling)
                          computeAnnotationSet(e.sym, annotationSet);
                  }

            jjg Jonathan Gibbons
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: