Comments (6)
FYI, if you don't know it, Maven2 has maven-shade-plugin "to package the
artifact in
an uber-jar, including its dependencies and to shade - i.e. rename - the
packages of
some of the dependencies".
see http://maven.apache.org/plugins/maven-shade-plugin/
It seems like this one would be useful to upgrade asm without hassle.
If you're interested but either don't know maven-shade-plugin, or even Maven2,
just
tell me and I can help.
Original comment by [email protected]
on 26 Dec 2008 at 11:37
from beanshell2.
I took a quick look at this, and it looks like org.objectweb.asm.ClassWriter no
longer exists in asm. It seems like the easiest route would be to extract the
interface of ClassWriter that bsh uses, and re-implement that with the current
asm
APIs, and update the classes as needed. This may not be the best way to go
about it
though, since I don't really know how ClassWriter is used in bsh, and I'm not
100%
convinced that that is the only asm class in use currently.
Original comment by [email protected]
on 12 Feb 2009 at 6:47
from beanshell2.
This is not the case. The issue is that BeanShell renames the package to
bsh.org.objectweb.asm, which makes every thing break. There are also API
changes in the
new ASM package, for which BeanShell source needs fix. I figured this out for
another
project I am doing for which I needed to add some features to BeanShell. Have a
look at
the my modified source repo at:
http://code.google.com/p/metastudio/source/browse/trunk/metastudio/lib/src/bsh/s
rc/bsh/
Original comment by [email protected]
on 16 Sep 2009 at 4:10
from beanshell2.
@tovganesh You have a bunch of files in that linked-to directory. Can you pls
enumerate which of those you actually made changes to?
thx
Original comment by [email protected]
on 29 May 2011 at 10:19
from beanshell2.
While we're at it, why not abstract out the class writer so that it can use
assemblers for different VMs? For instance, I plan to use smali's dexlib to
generate Dalvik classes... if we could make a pluggable interface that uses
ASM, dexlib, or whatever, then that would expand the scope of beanshell2's
usability.
Original comment by [email protected]
on 4 Aug 2011 at 4:10
from beanshell2.
I know this is an old issue, but it was actually quite trivial by version
stepping to get beanshell to work with asm 4.1/5.0-alpha. just removed the
embedded asm package and linked in the jar progressing though each version
until it was current and fixing errors as I went. the only file that needed
modified was ClassGeneratorUtil.java which is attahed.
-Allen
Original comment by [email protected]
on 11 Apr 2013 at 4:33
Attachments:
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 6
- improvement suggestion: make a built-in read-eval-print loop HOT 1
- Bean sheel extensions: printing live objects
- java.lang.VerifyError: (class: BshTestExtended, method: _bshSuperexecute signature: (J)J) Register 1 contains wrong type
- Mave HOT 2
- Reflect.getIndex() throws ArrayIndexOutOfBoundsException HOT 2
- JConsole improvement ideas + patch
- Obsolete call to "j.l.reflect.AccessibleObject.setAccessible(true)" HOT 9
- Outdated Splash Image for BeanShell Desktop
- Missing Clipboard Popup in BeanShell Desktop Workspace Editor
- Parser Error When Omitting Semi-colons in Blocks HOT 1
- Anonymous inner classes and referencing member variables
- Finally block is not executed if an exception is thrown in the previous catch block HOT 4
- Support for "final" inside method parameters HOT 1
- Parser Error for binary number
- 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.