Details
Description
I have a very simple class containing an inner class :
package com.bsb.package1;
public class Class2 {
public static final class InnerClass {
}
}
In another class I use the inner class as a method parameter :
package com.bsb;
import com.bsb.package1.Class2;
public class Class1 {
public void testMethod(Class2.InnerClass param) {
}
}
- After a build of the source tree, the result of method.getDeclarationSignature(true) is :
public void testMethod(Class2.InnerClass param)
- The problem is that that the name of the class of the parameter is NOT fully qualified.
- BUT if I add the (useless) explicit import of the inner class (i.e. import com.bsb.package1.Class2.InnerClass then the result is :
public void testMethod(com.bsb.package1.Class2.InnerClass param)
... which is correct.
Activity
Philippe Gaudin
made changes -
Field | Original Value | New Value |
---|---|---|
Attachment | src.zip [ 12670 ] |
Philippe Gaudin
made changes -
Attachment | JavaSource.java [ 12691 ] |
Philippe Gaudin
made changes -
Attachment | JavaSource.java [ 12693 ] |
Philippe Gaudin
made changes -
Attachment | patch [ 12694 ] |
Mike Williams
made changes -
Fix Version/s | 1.6 [ 10814 ] | |
Assignee | Mike Williams [ mdub ] |
Joe Walnes
made changes -
Status | Open [ 1 ] | Closed [ 6 ] |
Resolution | Fixed [ 1 ] |
The very simple test case