bug-kawa
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-kawa] [bug #15881] classnotfound exception compiling application of


From: tk
Subject: [Bug-kawa] [bug #15881] classnotfound exception compiling application of define-syntax macro
Date: Mon, 27 Feb 2006 22:47:38 +0000
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/417.9 (KHTML, like Gecko) Safari/417.8

Follow-up Comment #1, bug #15881 (project kawa):


Possible fix -- works for my code, but I haven't sorted out whether this has

undesirable side-effects. The modification to load.java establishes the 
reflectClass for the ObjectType of the module's main class at load time. 
(if reflectClass isn't set, ObjectType.getReflectClass tries to set it 
later using Class.forName -- this with a ClassNotFoundException, because 
the class will not be accessible by name in the current classloader).



RCS file: /cvs/kawa/kawa/kawa/standard/load.java,v
retrieving revision 1.57
diff -c -r1.57 load.java
*** kawa/standard/load.java     20 Feb 2006 06:02:41 -0000      1.57
--- kawa/standard/load.java     27 Feb 2006 22:30:28 -0000
***************
*** 79,84 ****
--- 79,85 ----
            throw new RuntimeException("load: "+name+" - no module in
archive");
        gnu.kawa.reflect.ClassMemberLocation.defineAll(proc, env);
        ((ModuleBody) proc).run();
+       gnu.bytecode.Type.make(clas);
        }
      catch (java.io.IOException ex)
        {


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=15881>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]