[英]why jdb won't recognize the “Integer” class?
I connect like this: 我这样连接:
$ jdb -connect com.sun.jdi.SocketAttach:hostname=x.x.x.x,port=8008
In the jdb prompt I do this: 在jdb提示符下,我这样做:
> stop in com.me.some.Gizmo.function
Then it breaks correctly, but when I do this: 然后它会正确中断,但是当我这样做时:
> print Integer.parseInt("4")
It outputs this: 它输出:
com.sun.tools.example.debug.expr.ParseException: Name unknown: java.lang.Integer
Why on earth can't jdb recognize the "Integer" class?? 为什么地球上的jdb无法识别“整数”类?
Although java allows classes from the package java.lang
to be referenced without the fully qualified name, JDB does not. 尽管java允许引用包
java.lang
类时不使用完全限定名称,但JDB不允许。
> print java.lang.Integer.parseInt("4")
should work. 应该管用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.