Hi,
Here is a revised webrev taking into account Stuart's comments.
http://cr.openjdk.java.net/~dfuchs/JDK-8003476/webrev.01/
I have identified further places where Object or <?> could be
replaced with more specific types - which allowed me to get
rid of yet more ugly casts.
best regards,
-- daniel
On 11/20/12 11:15 AM, Daniel Fuchs wrote:
On 11/20/12 7:51 AM, Stuart Marks wrote:
Well, they may be undocumented, but that doesn't mean that nobody
depends on them. :-/
I think these changes are all binary compatible, since the erasures of
the new versions are all the same as the raw type.
Source compatibility is a different issue. Actually it doesn't seem too
bad. The old version returned a raw Enumeration, and the new version
returns either an Enumeration<?> or Enumeration<SnmpMibSubRequest> or
whatever. So callers will get a rawtypes warning when they recompile,
but only if they enable the right -Xlint option.
Given that the compatibility issues seem quite minor, and our assumption
that it's unlikely that code outside the JDK uses these interfaces,
these changes seem pretty safe.
Sound reasonable?
Yes - I will make the changes!
-- daniel