mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 06:15:43 +00:00
115380ea02
improvements: Subject: Rhino: Problem in NativeJavaMethod Date: Tue, 14 Aug 2001 10:23:35 +0200 From: felix.meschberger@day.com To: Norris Boyd <nboyd@atg.com> Hi Norris, While working with wrapped Java classes we discovered a problem in NativeJavaMethod : If the public method to be called is part of a non-public class, the Sun Java VM throws an IllegalAccessException. This bug in the Sun VM has been reported as Bug 4071593 to Sun, but has not been resolved since.... I implemented a circumvention, for which I provide you the patch. I quickly tested it, and it seems to work. Regards Felix And here's the patch : diff -w -r1.19 NativeJavaMethod.java 227a228,234 > /** > * Due to a bug in Suns VM, public methods in private > * classes are not accessible by default (Sun Bug #4071593). > * We have to explicitly set the method accessible beforehand > */ > meth.setAccessible(true); > ----------------------------------------------------------------- This message is a private communication. If you are not the intended recipient, please do not read, copy, or use it, and do not disclose it to others. Please notify the sender of the delivery error by replying to this message, and then delete it from your system. Thank you. The sender does not assume any liability for timely, trouble-free, complete, virus free, secure, error free or uninterrupted arrival of this e-mail. For verification please request a hard copy version. mailto:felix.meschberger@day.com http://www.day.com Felix Meschberger Development Day Interactive AG Steinenberg 21-23 4001 Basel Switzerland T 41 61 226 98 98 F 41 61 226 98 97 |
||
---|---|---|
.. | ||
benchmarks | ||
js2 | ||
jsd | ||
jsdj | ||
jsj | ||
macbuild | ||
ref | ||
rhino | ||
src | ||
tests | ||
.cvsignore | ||
landbranch.pl | ||
Makefile.in | ||
makefile.win |