Closed GoogleCodeExporter closed 9 years ago
Original comment by fschm...@gmail.com
on 20 Feb 2011 at 10:10
Added unit test "bsh.InterpreterConcurrencyTest".
Fix delayed because created class points to wrong namespace. Need to do some
work on class creation process. That's also a chance to simplify it ;)
Code-pointers:
* Reflect.constructObject(..)
* created class in turn calls ClassGeneratorUtil.initInstance(..) from generated constructor
Could be simplified by implementing an internal callback (interface). This
removes some setting-field-by-reflection code and would allow to pass the
correct namespace to the instance (callstack based).
Besides concurrency issues this would also speed up e.g. class generation calls
in loops.
Original comment by pejob...@gmail.com
on 20 Feb 2011 at 11:38
* new marker interface "bsh.GeneratedClass" for generated classes
* caching of generated class instance in "bhs.BSHClassDeclaration"
* inject current namespace for new instances of generated classes in
"bsh.BSHAllocationExpression"
> Need to do some work on class creation process.
> That's also a chance to simplify it ;)
I postponed this, i'll do it with an ASM update. It's a bigger change.
fixed with http://code.google.com/p/beanshell2/source/detail?r=61
Original comment by pejob...@gmail.com
on 25 Feb 2011 at 5:12
for "inject namespace" i added a (package private) "copy" method to
"bsh.NameSpace"
Original comment by pejob...@gmail.com
on 25 Feb 2011 at 5:13
Original comment by pejob...@gmail.com
on 25 Feb 2011 at 5:53
Original comment by pejob...@gmail.com
on 20 Oct 2011 at 7:12
Original issue reported on code.google.com by
pejob...@gmail.com
on 20 Feb 2011 at 5:42