java.lang.reflect.AnnotatedElement changes

David Holmes david.holmes at oracle.com
Fri Feb 15 14:10:22 UTC 2013


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?

David
-----

> For example, Guava, which has the Parameter class
> (
> https://code.google.com/p/guava-libraries/source/browse/guava/src/com/google/common/reflect/Parameter.java
> )
>
> - Kasper
>



More information about the core-libs-dev mailing list