Comments (6)
Original comment by [email protected]
on 20 Feb 2011 at 10:10
from beanshell2.
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 [email protected]
on 20 Feb 2011 at 11:38
- Changed state: Started
from beanshell2.
* 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 [email protected]
on 25 Feb 2011 at 5:12
- Changed state: Fixed
from beanshell2.
for "inject namespace" i added a (package private) "copy" method to
"bsh.NameSpace"
Original comment by [email protected]
on 25 Feb 2011 at 5:13
from beanshell2.
Original comment by [email protected]
on 25 Feb 2011 at 5:53
- Added labels: milestone-2.1b0
from beanshell2.
Original comment by [email protected]
on 20 Oct 2011 at 7:12
- Added labels: v2.1
from beanshell2.
Related Issues (20)
- A way to stop an Interpreter or at least see if it is running
- can't access public fields HOT 7
- improvement suggestion: make a built-in read-eval-print loop HOT 1
- Bean sheel extensions: printing live objects HOT 1
- java.lang.VerifyError: (class: BshTestExtended, method: _bshSuperexecute signature: (J)J) Register 1 contains wrong type
- Deploy to maven central HOT 2
- Reflect.getIndex() throws ArrayIndexOutOfBoundsException HOT 2
- JConsole improvement ideas + patch
- Is this project dead? HOT 4
- CVE-2016-2510 HOT 1
- Licence change: LGPL to Apache-2 HOT 8
- How Map{} is mapped into methods? HOT 4
- Parser Error in Comment Token
- Finally block is not executed if an exception is thrown in the previous catch block HOT 5
- Support for "final" inside method parameters HOT 2
- Parser Error for binary number HOT 1
- Unable to call inherited methods HOT 1
- version 2.1.7: can not access a member of class with modifiers "public final" HOT 3
- Method size() not found on unmodifiable list HOT 2
- Cannot access methods of inner classes in Beanshell 2.1.7 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from beanshell2.