accessibility bug
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Tue Jun 7 05:21:00 PDT 2011
This is another JDK 7 fix - private members of type-variables should not
be accessible (see 7022052).
These emails belong to compiler-dev at openjdk.java.net - please refrain
from posting JDK-7 questions/bugs in the lambda-dev mailing list.
Maurizio
On 07/06/11 12:43, Ali Ebrahimi wrote:
> Hi Maurizio,
> This is simplest test case:
> class Array<A> {
> private A[] data;
>
> Array(A[] data) {
> this.data = data;
> }
>
> public static<A, E extends Array<A>> Array<A> dup(E e){
> return new Array<A>(e.data);
> }
> }
>
> error:
> data has private access in Array
>
> this works in jdk6.
>
> Best Regards
> Ali Ebrahimi
>
More information about the lambda-dev
mailing list