bugKawa - Bugs: bug #42382, Assigned but unused argument

 
 

bug #42382: Assigned but unused argument

Submitter:  Helmut Eller <ellerh>
Submitted:  Sat 17 May 2014 09:24:21 AM UTC
   
 
Category:  Code generation Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  bothner
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 23 Sep 2014 04:53:09 PM UTC, comment #2: 

I checked in a fix and test-case.

Last I worked on this bug, the fix was getting very complicated.  However, after starting over, I found a simple fix that seems to work.

Per Bothner <bothner>
Group administrator
Sun 18 May 2014 06:32:20 AM UTC, comment #1: 

I've looked into this, but I have to think about the best way to fix it. The Code attribute isn't generated because it's needed; the issue is making sure the Method object isn't created.

Per Bothner <bothner>
Group administrator
Sat 17 May 2014 09:24:21 AM UTC, original submission:  

Probably related to bug #42377.
This example


((lambda (x)
   (set! x (lambda () 123))
   456)
 #f)


executed in Kawa 1.14.1 (revision 7749:7879M) produces this error:


Exception in thread "main" java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file x
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:642)
        at gnu.bytecode.ArrayClassLoader.loadClass(ArrayClassLoader.java:125)
        at gnu.expr.ModuleExp.evalToClass(ModuleExp.java:132)
        at gnu.expr.ModuleExp.evalModule1(ModuleExp.java:258)
        at kawa.Shell.compileSource(Shell.java:556)
        at kawa.Shell.runFile(Shell.java:524)
        at kawa.Shell.runFileOrClass(Shell.java:443)
        at kawa.repl.main(repl.java:876)



Helmut Eller <ellerh>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bothner (Posted a comment)
  • -email is unavailable- added by ellerh (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-09-23 bothner StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2014-05-18 bothner CategoryNone Code generation
        StatusNone Confirmed
        Assigned toNone bothner

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code