Jump to content

Open source Java disassembler for Linux?


vailixi

Recommended Posts

Well, there's ASM which allows you to basically work the bytecode. It's used extensively for on-the-fly instrumentation by for instance junit (to see how much of the code is covered by the unittests) and hibernate (for adding the syncing between properties and table data) but also component injecting frameworks such as Spring where if you annotate a property properly the annotated property, when the class is loaded by the classloader, is modified to something that initializes itself during construction.

So for example this:

@Inject
private final GenericServiceType aGenericServiceINeed = null;

is changed to this when the class is loaded:

private final GenericServiceType aGenericServiceINeed = new ASpecificServiceIDefinedSomewhere();

It's cool stuff and ASM does make it really easy to work with. You just need to be familiar with the concepts behind a SAX parser.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...