jmx-dev Review: JDK-8003476 Cleanup warnings in com.sun.jmx.snmp code

Daniel Fuchs daniel.fuchs at oracle.com
Tue Nov 20 02:15:45 PST 2012


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




More information about the jmx-dev mailing list