[Bug 859] javac to strict when checking cast
bugzilla-daemon at icedtea.classpath.org
bugzilla-daemon at icedtea.classpath.org
Wed Jan 25 03:16:49 PST 2012
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=859
Andrew John Hughes <ahughes at redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Andrew John Hughes <ahughes at redhat.com> 2012-01-25 11:16:49 UTC ---
Why do you think this is valid?
You're saying it should allow a set of objects containing a superclass
EventRequest to be used as a set of objects of a subclass. The compiler is
rightly stopping this because you could then retrieve an object from the new
collection thinking it's a StepRequest when it's only an EventRequest.
--
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