This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I created a new class. In the body of the main method I fill Integer myNumber = 10; String className = myNumber.getC| and ask for code completion. NetBeans propose getClass() Class<Object> and it displays in the javadoc the following: public final native Class<Object> getClass(); But it's not correct. the getClass() method for a Integer is in fact returning a Class<? extends Integer>. And the javadoc of the getClass member would display public final native Class<Integer> getClass(); or at least public final native Class<? extends Object> getClass(); Also, if I write Integer.cl| , the code completion propose class Class I think it would be class Class<Integer> just my 2 cents.
ParameterizedType with Class as definition and Object as parameter is returned from MDR as return type of getClass(). I have no idea how to get wildcards from it. Reassigning to javacore for evaluation.
Fixed in trunk. Checking in ParameterizedTypeImpl.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/ParameterizedTypeImpl.java,v <-- ParameterizedTypeImpl.java new revision: 1.26; previous revision: 1.25 done
Reorganization of java component