JDK-8030660 : Compile-time error in the case of ((Integer[] & Serializable)new Integer[1]).getClass()
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 8
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2013-10-29
  • Updated: 2014-12-15
  • Resolved: 2013-11-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 Other
8 b117Fixed port-stage-ppc-aixFixed
Related Reports
Blocks :  
Blocks :  
Relates :  
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
Comments
Affected tests (see JCK-7301758): lang/LMBD/lmbd118/lmbd11803m13/lmbd11803m13.html lang/LMBD/lmbd118/lmbd11803m03/lmbd11803m03.html lang/LMBD/lmbd118/lmbd11803m141/lmbd11803m141.html lang/LMBD/lmbd118/lmbd11803m33/lmbd11803m33.html lang/LMBD/lmbd118/lmbd11803m341/lmbd11803m341.html
18-11-2013

Currently under review
06-11-2013

8-critical-dev: this bug is a tck-red blocked by a small change in the spec. It will take a few days more than the allowed time for a ZBB bug but planning to be completed by or before Nov 11.
06-11-2013

Blocked by requested spec change
01-11-2013

Recommended action: amend the lambda spec and back out JDK-8021339
31-10-2013