bug-kawa
[Top][All Lists]
Advanced

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

[Bug-kawa] [bug #47615] Runtime exception when calling method on ClassTy


From: Tom Bousso
Subject: [Bug-kawa] [bug #47615] Runtime exception when calling method on ClassType object
Date: Mon, 04 Apr 2016 03:17:48 +0000
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0

URL:
  <http://savannah.gnu.org/bugs/?47615>

                 Summary: Runtime exception when calling method on ClassType
object
                 Project: Kawa
            Submitted by: tbousso
            Submitted on: Mon 04 Apr 2016 03:17:47 AM GMT
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:


(define-alias ClassType gnu.bytecode.ClassType)

(define c1 ::ClassType (ClassType "Helloworld1"))
(*:setSuper c1 "java.lang.Object")

(define c2 ::ClassType (ClassType "Helloworld2"))
(c2:setSuper "java.lang.Object")


This is derived from the jmc.scm file in the testsuite. The first version
using *:setSuper works (this is how it's done in jmc.scm), however when I use
c2:setSuper instead it seems to get confused and try to call setSuper on the
class which I'm creating, Helloworld2, instead of on the ClassType.


java.lang.RuntimeException: no applicable method named `setSuper' in
Helloworld2
        at gnu.kawa.reflect.ClassMethods.apply(ClassMethods.java:50)
        at gnu.kawa.functions.GetNamedPart.getTypePart(GetNamedPart.java:79)
        at
gnu.kawa.functions.GetNamedPart.getNamedPart(GetNamedPart.java:105)
        at gnu.kawa.functions.GetNamedPart.apply2(GetNamedPart.java:46)
        at atInteractiveLevel-5.run(test.scm:7)
        at gnu.expr.ModuleExp.evalModule2(ModuleExp.java:293)
        at gnu.expr.ModuleExp.evalModule(ModuleExp.java:212)
        at kawa.Shell.run(Shell.java:291)
        at kawa.Shell.runFile(Shell.java:524)
        at kawa.Shell.runFileOrClass(Shell.java:447)
        at kawa.repl.processArgs(repl.java:283)
        at kawa.repl.main(repl.java:793)





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47615>

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




reply via email to

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