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.
The java.source (parsing.api) Pair is copied in many IDE modules in all possible versions and some of them are even wrong. There are also 2 copies which are a part of a friend api and some modules have even more copies of them. Here is a list of modules which declare Pair type, the list of modules which are using them is even much bigger. cnd.asm cnd.repository contrib/ada.project contrib/cnd.fortran contrib/corba contrib/gsf contrib/python.project contrib/ssinstaller csl.api debugger.jpda.ui java.hints java.j2seprofiles java.navigation java.source javascript.editing jumpto kenai maven.hints parsing.api php.api.phpmodule refactoring.java spellchecker.bindings.htmlxml web.common web.el The proposed change replaces these Pairs by a common Pair in the platform. The patch removes all the copies of Pair from netbeans repository (not contrib).
Created attachment 133791 [details] Diff file
Thanks for doing that! Adding Junichi to CC - please, check whether you are using Pair class in your modules and if yes, replace it with this new one once this issue is fixed. Thanks.
Looks OK
(In reply to comment #2) > Adding Junichi to CC - please, check whether you are using Pair class in your > modules and if yes, replace it with this new one once this issue is fixed. I have checked Pair class in my modules. I was not using it. Thank you for letting me know!
Looks well. Thanks for web.el update!
Fixed jet-main 4b7b6787e247
Integrated into 'main-golden', will be available in build *201305042300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/4b7b6787e247 User: Tomas Zezula <tzezula@netbeans.org> Log: #228994:Added a type safe Pair of 2 elements into openide.util