Open GoogleCodeExporter opened 9 years ago
It is pretty obvious, but just for completeness... in "What steps will
reproduce the
problem", I forgot to mention that you need to load the applet from a remote
server
to notice it. If you load it locally, it won't go to the network to find
classes so
it won't slow down.
Original comment by komoku
on 26 Apr 2010 at 8:01
Original comment by fschm...@gmail.com
on 20 Feb 2011 at 10:12
To simplify debugging: One could set a classloader instance for an interpreter
instance. I passed a simple class loader which only logs the requested class
and resource names.
It turned out that some 'silly' class names are requested. Beanshell is a
scripting name without strong typing, so each 'name' which is no reachable
variable name could be a class name (or the prefix of one). The only way to
know is to ask the classloader. In case of applet this time is significant
(http call).
I'll investigate further if there are any optimizations possible. E.g. i
observed requests for class 'bsh' even if the executed script is empty *. Then
there is the command handling. And in the stable 2.0b4 there were also the
requests for corresponding ".java" files (see issue 17 'classloader attempts to
load java files').
* Footnote: Caused by "getu("bsh")" in constructor of Interpreter.
Original comment by pejob...@gmail.com
on 20 Feb 2011 at 11:54
Original issue reported on code.google.com by
komoku
on 26 Apr 2010 at 7:58