Coder Social home page Coder Social logo

upgrade ASM about beanshell2 HOT 6 OPEN

franciscocpg avatar franciscocpg commented on May 18, 2024
upgrade ASM

from beanshell2.

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
@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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 18, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.