-
Bug
-
Resolution: Fixed
-
P2
-
7, 8
-
b100
-
unknown, x86
-
generic, windows_7
-
Verified
There is a fairly straightforward bug in Types.subst (ArrayType visitor method):
@Override
public Type visitArrayType(ArrayType t, Void ignored) {
Type elemtype = subst(t.elemtype);
if (elemtype == t.elemtype)
return t;
else
return new ArrayType(upperBound(elemtype), t.tsym);
}
@Override
public Type visitArrayType(ArrayType t, Void ignored) {
Type elemtype = subst(t.elemtype);
if (elemtype == t.elemtype)
return t;
else
return new ArrayType(upperBound(elemtype), t.tsym);
}
- duplicates
-
JDK-7034511 Loophole in typesafety
- Closed
- relates to
-
JDK-7040883 Compilation error: "length in Array is defined in an inaccessible class or interface"
- Closed
-
JDK-7034511 Loophole in typesafety
- Closed