Clarification on JDK-8038975

Paul Govereau paul.govereau at
Tue Jun 3 20:35:10 UTC 2014


I have recently fixed .

Which is a difference in access enforcement for inner classes depending on if 
an enhanced-for is used or not.

However, now the reviewers and I are having doubts that this is a bug. Perhaps 
javac is correctly handling the enhanced-for and the "diminished" for is not 
handled correctly.

Can anyone help clarify the spec in regard to this issue?


More information about the compiler-dev mailing list