-
Enhancement
-
Resolution: Won't Fix
-
P5
-
None
-
6
-
x86
-
windows_xp
A DESCRIPTION OF THE REQUEST :
Mixing raw and parameterized generic types is error-prone. It would be useful to have a compiler option to reject use of raw types but to be able to annotate a class or method to exempt the annotated code from this behavior.
Suggested annotation: @PermitRawTypes
JUSTIFICATION :
To avoid erroneous use of raw types.
CUSTOMER SUBMITTED WORKAROUND :
Eclipse now provides the desired compiler option, but without the permissive annotation.
Mixing raw and parameterized generic types is error-prone. It would be useful to have a compiler option to reject use of raw types but to be able to annotate a class or method to exempt the annotated code from this behavior.
Suggested annotation: @PermitRawTypes
JUSTIFICATION :
To avoid erroneous use of raw types.
CUSTOMER SUBMITTED WORKAROUND :
Eclipse now provides the desired compiler option, but without the permissive annotation.
- duplicates
-
JDK-6298110 Permit annotation-based invalidation of raw type use for new generic type
-
- Closed
-
- relates to
-
JDK-6747671 -Xlint:rawtypes
-
- Closed
-
-
JDK-8061418 Add reification of generic type parameters to the Java programming language
-
- Closed
-