JDK-8013394 : compile of iterator use fails with error "defined in an inaccessible class or interface"
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2013-04-26
  • Updated: 2013-08-29
  • Resolved: 2013-08-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8 b105Fixed
Related Reports
Relates :  
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.
Comments
I see this is duplicated with the attached sample.
29-07-2013

The issue is not reproducible anymore. I have tried updating the compiler to versions close to the creation date but I don't get the error.
29-07-2013

Vicente, I think this has been caused by your Lower fix for the for-each loop.
29-05-2013

failing sqe test case: javac/varargs/simplified/sva05
26-04-2013