Code Review Request: 7157893: Warnings Cleanup in java.util.* (original) (raw)
Stuart Marks stuart.marks at oracle.com
Sat Apr 7 00:45:01 UTC 2012
- Previous message: Generics & Reification Was Code Review Request: 7157893: Warnings Cleanup in java.util.*
- Next message: hg: jdk8/tl/jdk: 7133806: Typo in Files.newByteChannel javadoc
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 4/5/12 12:08 AM, Stuart Marks wrote:
src/share/classes/java/util/PropertyPermission.java ----------------------------------------------------------------------
- L599 this is another case of "laundering" a conversion through a raw type (similar to Collections.java above), as we can't directly convert an Enumeration to Enumeration. As Remi noted in [4] this conversion wouldn't be necessary if Collections.enumeration() method were changed to take Collection<? extends T> instead of Collection. But that's an API change and should be handled separately. I'll file a bug on this.
There's already a bug on this, with some discussion:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6571613
The discussion revolves around how this interacts with type inference, and it mentions that "Smarter type inference may appear in JDK7." I know there have been type inference changes but I don't know how they would affect this case. Worth pursuing, anyway.
s'marks
- Previous message: Generics & Reification Was Code Review Request: 7157893: Warnings Cleanup in java.util.*
- Next message: hg: jdk8/tl/jdk: 7133806: Typo in Files.newByteChannel javadoc
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]