-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting .class files #752
Comments
I did some more digging. There appears to be differences between implementing an interface and inheriting from a class. The script which i was using was just
The .class file was generated only when then |
This will require more in depth investigation, off hand I can say: BeanShell only generates bytecode for virtual classes (bsh scripted classes, intefaces and enums) but uses compiled classes directly as found on the class path. The class generation code is located in beanshell/src/main/java/bsh/ClassGenerator.java Lines 140 to 148 in 2ffb804
It may be that we are not calling this for all instances. Hope this helps, in the interim. |
The issue #72 covers some documentation which may help with writing unit tests. |
I would like to check what bytecode bsh actually generates. I found out that theres sys. property which can be used for this exact purpose - bsh.debugClasses
I tried using Interpreter directly and scriptengine (which would be preferred way for me) to compile/execute bsh scripts. But none of these two approaches actually generated .class files within the dir i provided.
Im on 3.0.0 snapshot
The text was updated successfully, but these errors were encountered: