[ nice-Bugs-1177746 ] multi-method NoSuchMethodError (library class loading)
"SourceForge.net" <[email protected]> Sun, 10 Apr 2005 06:25:19 -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 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-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 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