[ nice-Bugs-1177746 ] multi-method NoSuchMethodError (library class loading)
"SourceForge.net" <[email protected]> Wed, 06 Apr 2005 06:12:54 -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 (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112788&aid=1177746&group_id=12788 Category: None Group: None Status: Open Resolution: None Priority: 5 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... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112788&aid=1177746&group_id=12788 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click