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
r=mkaply, a=asa for drivers
OS/2 ONLY - Code from Javier Pedemonte - more recovery from the libpr0n landing
This code makes all PNGs work and with it, all images should work on OS/2
bump version number to 0.8.4
reduce max word length to 20
s/toolbar/tabstrip/
dont connect to default urls if we're supposed to go to a specific irc:// url
add quakenet
add mailto: and #Channel links
remove target attribute from links that don't need one
modify smiley insertion to be css friendly
implement tooltips
add dynamic css code, not used yet
fix parsing of empty irc:// urls (irc:, irc:/, and irc://)
focus input on startup and [esc]
implement dnd for content pane and links
add getURL method for the client object
load initial scripts at startup
rename toolbar functions to tabstrip
add support for content area context menu
implement css command
fix i18n string concatenation to use formats instead
imlement ping and version commands
add unknown ctcp handler
put list reply header with the list
add nickname in use during initial connect logic (append an _ until it works)
add ctcp ping reply handler