-
Bug
-
Resolution: Fixed
-
P4
-
repo-amber
-
generic
-
generic
Given:
public class X {
private static native void xxx();
public static void main(String [] args) {
xxx();
}
}
javac invoked with -XDfind=local-methods, prints:
/home/srikanth/tmp/X.java:3: warning: This method may be declared local to the method main(String[]) defined in class X
private static native void xxx();
^
1 warning
public class X {
private static native void xxx();
public static void main(String [] args) {
xxx();
}
}
javac invoked with -XDfind=local-methods, prints:
/home/srikanth/tmp/X.java:3: warning: This method may be declared local to the method main(String[]) defined in class X
private static native void xxx();
^
1 warning