-
Bug
-
Resolution: Fixed
-
P2
-
None
Arrays are presently allowed in intersection types, but this type is uninhabited (no such values exist in the language), and adding the ability to javac has created a bug-tail. Therefore the spec should be amended to disallow this case.
- blocks
-
JDK-8027253 javac illegally accepts array as bound
- Closed
-
JDK-8030660 Compile-time error in the case of ((Integer[] & Serializable)new Integer[1]).getClass()
- Closed
- relates to
-
JDK-8021339 Compile-time error during casting array to intersection
- Closed