Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.6.8
-
Fix Version/s: 1.7.2, 1.6.9, 1.8-beta-1
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
The below java code outputs 1 and 0
A.java
public class A { public MethodClosure createMethodClosure() { return new MethodClosure(this, "someMethod"); } protected void someMethod(int someParameter) {} }
B.java
public class B extends A { }
Test.java
public class Test { public static void main(String[] args) { System.out.println(new A().createMethodClosure().getMaximumNumberOfParameters()); System.out.println(new B().createMethodClosure().getMaximumNumberOfParameters()); } }
Fixed