[ nice-Bugs-1177746 ] multi-method NoSuchMethodError (library class loading)
"SourceForge.net" <[email protected]> Fri, 09 Sep 2005 22:32:55 -0700
| Newsgroups | gmane.comp.lang.nice.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #1177746, was opened at 2005-04-06 17:12 Message generated for change (Comment added) made by artemgr You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112788&aid=1177746&group_id=12788 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 4 Submitted By: Artem Gr Kozarezov (artemgr) Assigned to: Nobody/Anonymous (nobody) Summary: multi-method NoSuchMethodError (library class loading) Initial Comment: http://confer09.condor-edv.com/nice@freenode/2005-04-06.html When there is a Nice library (in a separate library.jar that can't be modified), and the program defines a multi-method on a class from that library, then it depends on ClassLoader whether the modified library class will be seen or not. If ClassLoader checks library.jar first, then the original class, without new multi-method, is loaded, and NoSuchMethodError exception is thrown at runtime. This problem is even worse for dynamically-compiled Nice packages, where application build process can't be modified, class loading order is predefined and more: the modified class is already loaded and used by the JVM. This problem is currently actual for package-visible multi-methods also... ---------------------------------------------------------------------- >Comment By: Artem Gr Kozarezov (artemgr) Date: 2005-09-10 09:32 Message: Logged In: YES user_id=289741 See also http://cvs.sourceforge.net/viewcvs.py/nice/Nice/testsuite/compiler/overloading/dynamic.nice?view=auto ---------------------------------------------------------------------- Comment By: Artem Gr Kozarezov (artemgr) Date: 2005-04-10 17:25 Message: Logged In: YES user_id=289741 The current CVS HEAD mitigates this problem to a tolerable extent by generating (if i understand correctly) non-package methods into the package dispatch. Thus i will lover the priority of this bug. The bug should be still present for overriden non-package methods. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112788&aid=1177746&group_id=12788 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf