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.
040603. I have some code in an NBM project, which declares that it is using 1.4 source (SourceLevelQuery). I write private static final class TargetComparator implements Comparator/*<Target>*/ { public TargetComparator() {} } and invoke Tools -> Synchronize. (For some reason, did not pop up automatically.) It offers to add the compare method, which I accept. But that produces public int compare(T o1, T o2) { } which is of course a compiler error - there is no class named T, this is supposed to be a generic type parameter. But I can't even use generics in this source file - it is not 1.5 source. Should be producing public int compare(Object o1, Object o2) { }
Moved to new subcomponent java/javacore.
Fixed. Checking in ElementImpl.java; /cvs/java/src/org/netbeans/modules/java/bridge/ElementImpl.java,v <-- ElementImpl.java new revision: 1.7; previous revision: 1.6
Reorganization of java component