You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bcel-user@jakarta.apache.org by Felix Dorner <FD...@zed.com> on 2009/07/02 10:23:12 UTC

Extract Constructor Code to new method

Hey,

Given a no-arg constructor, I'd like to insert a new public method and move all instructions into that new method. After moving that code, the constructor would look like one that's automatically inserted by the compiler, i.e. only calls <init> of its superclass and returns.

I've never done anything with BCEL, though I can follow the general information pages. Still, I have no Idea how hard my problem is and therefore wanted to ask here for some guidance.


Thanks,
Felix
---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-user-help@jakarta.apache.org