-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: repo-amber
-
Component/s: tools
-
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