Description
This code:
public class IterableTest {
interface Data extends Iterable<String> { }
void test(Iterable<? extends Data> t) {
for(Object a: t.iterator().next());
}
}
used to compile with 1.8.0 b82, it doesn't compile with TL.
public class IterableTest {
interface Data extends Iterable<String> { }
void test(Iterable<? extends Data> t) {
for(Object a: t.iterator().next());
}
}
used to compile with 1.8.0 b82, it doesn't compile with TL.
Attachments
Issue Links
- relates to
-
JDK-8013394 compile of iterator use fails with error "defined in an inaccessible class or interface"
- Closed
-
JDK-5053846 javac: MethodRef entries are duplicated in the constant pool
- Closed