O
oulan bator
hi,
I'm trying to write a class using BCEL from scratch and get error
Exception in thread "main" java.lang.InstantiationException:
org.apache.bcel.generic.ClassGen
at java.lang.Class.newInstance0(Unknown Source)
when I'm calling newInstance on this class. I guess that it's because I
did'nt write a default constructor.
How can I create a constructor in a class file using BCEL ?
Constructors are neither methods nor have a dedicated gen in BCEL api
like a constructor
thanks
I'm trying to write a class using BCEL from scratch and get error
Exception in thread "main" java.lang.InstantiationException:
org.apache.bcel.generic.ClassGen
at java.lang.Class.newInstance0(Unknown Source)
when I'm calling newInstance on this class. I guess that it's because I
did'nt write a default constructor.
How can I create a constructor in a class file using BCEL ?
Constructors are neither methods nor have a dedicated gen in BCEL api
like a constructor
thanks