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.
CompareTo() method should take an argument of the type you are sorting, but not an argument of type Object.
Reassigning to java for evaluation.
I cannot see any problems with automatic addition compareTo() method. The type of argument depends on the style of declaration. It should be compareTo(java.lang.Object) if don't specify the generic type, e.g. use declaration "class X implements Comparable { ....", otherwise the type is the same as used in declaration e.g. "class X implements Comparable<String> { .... public int comparerTo(String arg){ ...."