java.lang.reflect.AnnotatedElement changes

Martin Buchholz martinrb at
Fri Feb 15 23:49:24 UTC 2013

On Fri, Feb 15, 2013 at 6:10 AM, David Holmes <david.holmes at>wrote:

> On 15/02/2013 11:53 PM, Kasper Nielsen wrote:
>> Hi,
>> I know AnnotatedElement is not a common class to implement outside of the
>> JDK. But the interface introduces some new methods that will break
>> existing
>> code.
> I must admit I am surprised as I thought that any new methods on
> interfaces would have to have default implementations to avoid this kind of
> breakage. Seems to me that defaults should be possible for those new
> methods. Perhaps this is still a work in progress?

OpenJDK could invest more in static analysis tools.  Here it would be good
to use a tool to audit all interfaces to check that new methods without
defaults have not been added.

More information about the core-libs-dev mailing list