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.
While profiling editor I noticed another pairof almost identical classes. Run 'diff -c debuggerjpda/src/org/netbeans/modules/debugger/jpda/EditorContextBridge.java debuggerjpda/ui/src/org/netbeans/modules/debugger/jpda/ui/EditorContextBridge.java' to see that this is really copy & paste. The more cases like this means bigger memory footprint and higher risk of fixes that are not propagated to right place.
There are more identical pairs of classes in debugger modules. This is because debugger modules are independent and can not use each-other classes. This might not be possible to fix unless we make a public API from them (which is unlikely).
Well, EditorContextBridge mostly delegates to EditorContext. If we add some static helper methods to EditorContext, we might get rid of both EditorContextBridge classes. This would also simplify "Find Usages".
There was performed some reduction of the common code already: /shared/data/ccvs/repository/debuggerjpda/src/org/netbeans/modules/debugger/jpda/EditorContextBridge.java revision 1.13 /shared/data/ccvs/repository/debuggerjpda/ui/src/org/netbeans/modules/debugger/jpda/ui/EditorContextBridge.java revision 1.17 There are still some small common identical parts - like CompoundContextProvider, but I do not think they can be shared anyhow. They are in distinct modules.
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.