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

compile of iterator use fails with error "defined in an inaccessible class or interface"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 8
    • tools
    • b105
    • Verified

      Sample has collection with its own iterator. Use of the collection fails to compile with the same error message noted in 80111432,
      is defined in an inaccessible class or interface

      T:\\ws\\tl\\langtools\\test\\tools\\javac\\T8011432\\test2.java:12: error: hasNext() in TestCollection.testCollectionIterator is defined in an inaccessible class or interface
          for( String s : tc1) System.out.print(s); System.out.println();
                          ^
      1 error

      jtreg test case attached.

            vromero Vicente Arturo Romero Zaldivar
            ssides Steve Sides
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: