Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8028834 | port-stage-ppc-aix | Eric Mccorkle | P2 | Resolved | Fixed | master |
Description
The following tests started to fail in 112 after changes corresponding to JDK-8021339 resolving with following compile-time error:
Error: java: cannot find symbol
symbol: method getClass()
while attempting to cast array to intersection of array and some interface and call getClass after casting
Affected tests:
lang/LMBD/lmbd118/lmbd11803m141/lmbd11803m141_rt.html
lang/LMBD/lmbd118/lmbd11803m341/lmbd11803m341_rt.html
lang/LMBD/lmbd118/lmbd11803m03/lmbd11803m03_rt.html
lang/LMBD/lmbd118/lmbd11803m33/lmbd11803m33_rt.html
lang/LMBD/lmbd118/lmbd11803m13/lmbd11803m13_rt.html
Please find the attached a sample of a code reproducing above-mentioned behavior
Error: java: cannot find symbol
symbol: method getClass()
while attempting to cast array to intersection of array and some interface and call getClass after casting
Affected tests:
lang/LMBD/lmbd118/lmbd11803m141/lmbd11803m141_rt.html
lang/LMBD/lmbd118/lmbd11803m341/lmbd11803m341_rt.html
lang/LMBD/lmbd118/lmbd11803m03/lmbd11803m03_rt.html
lang/LMBD/lmbd118/lmbd11803m33/lmbd11803m33_rt.html
lang/LMBD/lmbd118/lmbd11803m13/lmbd11803m13_rt.html
Please find the attached a sample of a code reproducing above-mentioned behavior
Attachments
Issue Links
- backported by
-
JDK-8028834 Compile-time error in the case of ((Integer[] & Serializable)new Integer[1]).getClass()
- Resolved
- blocks
-
JDK-8027386 Compiler regression error on multi-level abstract generic class with intersection types
- Open
- is blocked by
-
JDK-8027738 Lambda Spec: Disallow arrays in intersection cast targets
- Closed
- relates to
-
JDK-8021339 Compile-time error during casting array to intersection
- Closed