这个小程序的警告是怎么回事?# Java - 爪哇娇娃
r*r
1 楼
运行如下的代码后得到了警告,点击“continue”后程序可以正常输出正确结果。
Google后也找不到答案,请大牛提示一下。
public class PrintCommandLineArguments{
public static void main(String[] args){
System.out.println(args[0] + " "
+ args[1] + " " + args[2]);
}
}
//arguments in command line are: arg1 arg2 arg3
----------------------------------------------------
PrintCommandLineArguments at localhost:2109 contains obsolete methods.
Reason:
The virtual machine was unable to remove all stack frames running old
code from the call stack. The virtual machine is not supplying the debugger
with valid data for those frames. Stepping into these obsolete frames may
be hazardous to the target virtual machine.
Google后也找不到答案,请大牛提示一下。
public class PrintCommandLineArguments{
public static void main(String[] args){
System.out.println(args[0] + " "
+ args[1] + " " + args[2]);
}
}
//arguments in command line are: arg1 arg2 arg3
----------------------------------------------------
PrintCommandLineArguments at localhost:2109 contains obsolete methods.
Reason:
The virtual machine was unable to remove all stack frames running old
code from the call stack. The virtual machine is not supplying the debugger
with valid data for those frames. Stepping into these obsolete frames may
be hazardous to the target virtual machine.