[Bug libgcj/24616] linking BC-compiled classes: NoClassDefFoundErrors should be deferred

thebohemian at gmx dot net gcc-bugzilla@gcc.gnu.org
Mon Dec 5 11:34:00 GMT 2005

------- Comment #25 from thebohemian at gmx dot net  2005-12-05 11:34 -------
aph, this would be your test case right?

class T {
  void fail(){
      M m = new M();


// Bytecode removed
class M {
  void test(){

Considered that someone calls fail on a T object a NoClassDefFoundError should
be thrown immediately?

I think this is not right and that is why I put the println() invocations into
the method. What I observed is that the interpreter runs the code until it
reaches a situation where it cannot continue. In the above example this is the
instantiation of the M class.

My patch already addresses this by making M a phantom class.



More information about the Java-prs mailing list