@SafeVarargs on final classes

cowwoc cowwoc at bbs.darktech.org
Thu Oct 10 07:22:04 UTC 2013


Hi,

     JDK7 triggers a compiler error on non-final methods annotated with 
@SafeVarargs even if the class itself is final. I couldn't find any 
literature indicating whether this is intentional (the Javadoc states 
that the method must be final but says nothing about final classes). Can 
we change the behavior so final classes no longer trigger a compiler error?

Gili



More information about the core-libs-dev mailing list