The Scala compiler should not emit warnings in Java sources.
public enum En {
@Deprecated Um
}
public @interface Ann {
En value();
}
public class A {
@Ann(En.Um)
public static void te() { return; }
}
gives
$> sc Test.java -Ypickle-java -deprecation
/Users/luc/code/scala/scala13/sandbox/Test.java:10: warning: Java enum Um in Java enum En is deprecated
@Ann(En.Um)
^
1 warning
The Scala compiler should not emit warnings in Java sources.
gives