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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b105
    • Verification:
      Verified

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: