我想用点类
android.graphics
但似乎所有方法都是存根。例如,行
Point p = new Point(1, 1);
原因
java.lang.RuntimeException: Stub!
. 如果我在字节码中查找point,我会看到一些存根方法,例如:
// Method descriptor #17 (II)V
// Stack: 3, Locals: 3
public Point(int x, int y);
0 aload_0 [this]
1 invokespecial java.lang.Object() [1]
4 new java.lang.RuntimeException [2]
7 dup
8 ldc <String "Stub!"> [3]
10 invokespecial java.lang.RuntimeException(java.lang.String) [4]
13 athrow
Line numbers:
[pc: 0, line: 5]
Local variable table:
[pc: 0, pc: 14] local: this index: 0 type: android.graphics.Point
[pc: 0, pc: 14] local: x index: 1 type: int
[pc: 0, pc: 14] local: y index: 2 type: int
这里有什么交易?当然,他们没有提供100%存根的课程。