[Bug 859] New: javac to strict when checking cast
bugzilla-daemon at icedtea.classpath.org
bugzilla-daemon at icedtea.classpath.org
Wed Jan 25 02:28:50 PST 2012
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=859
Bug #: 859
Summary: javac to strict when checking cast
Classification: Unclassified
Product: IcedTea
Version: unspecified
Platform: x86_64
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P3
Component: IcedTea7
AssignedTo: ahughes at redhat.com
ReportedBy: kdaniel at redhat.com
CC: unassigned at icedtea.classpath.org
I have a field declaration
private ArrayList<HashSet<EventRequest>> fRequests;
which is then utilized by a method that calls
new ArrayList<StepRequest>((Collection<? extends StepRequest>)
fRequests.get(STEP_INDEX))
StepRequest extends EventRequest.
A cast from HashSet<EventRequest> to Collection<? extends StepRequest> is a
valid one, but javac complains about it.
--
Configure bugmail: http://icedtea.classpath.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the distro-pkg-dev
mailing list