bugKawa - Bugs: bug #49344, Class method in for-each gives...

 
 

bug #49344: Class method in for-each gives "internal error: missing LambdaExp".

Submitter:  Sudarshan S Chawathe <chaw>
Submitted:  Fri 14 Oct 2016 02:02:25 PM UTC
   
 
Category:  Scheme language Severity:  3 - Normal
Item Group:  Compile-time exception Status:  Works For Me
Privacy:  Public Assigned to:  bothner
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 14 Oct 2016 06:20:17 PM UTC, comment #2: 

Using the binary snapshot version of Kawa does indeed get rid of the error. Thanks!


Sudarshan S Chawathe <chaw>
Fri 14 Oct 2016 05:54:25 PM UTC, comment #1: 

I don't get the error when using the current Subversion version of Kawa.

You can add the warning by adding a type specifier to the field:

  (p1-slider ::javax.swing.JSlider
     (javax.swing.JSlider 0 100 42))

(Fields in Kawa are by default public, so it can infer the type.)

There is a binary snapshot of the latest Subversion Kawa at:
ftp://ftp.gnu.org/pub/gnu/kawa/kawa-latest.zip

The zip file includes the latest documentation (see kawa-VERSION/doc/README-epub).

Unless something comes up, I'm very close to releasing kawa 2.2, so it would be helpful it you tried it out.

Per Bothner <bothner>
Group administrator
Fri 14 Oct 2016 02:02:25 PM UTC, original submission:  

Assuming my interpretation of the docs (see bug #49343) is correct, it seems
like I am getting some odd behavior when attempting to use one class
method in another.  I have tried to produce a small example
illustrating the behavior.  Files are b101.scm and b102.scm.  I tested
using Kawa 2.1 and OpenJDK 7.

  kawa b101.scm

prints 42 as expected , albeit with a warning:

  b101.scm:6:5: warning - no known slot 'getValue' in java.lang.Object
  42

but the very similar

  kawa b102.scm

produces the following error message

  b102.scm:6:5: warning - no known slot 'getValue' in java.lang.Object
  b102.scm:10:25: internal error: missing LambdaExp:p1-value/4/l:5

Using kawa -C b102.scm confirms that it's a compile-time error.

Sudarshan S Chawathe <chaw>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #38730:  b101.scm added by chaw (259B - text/x-scheme - b101.scm works fine; b102.scm gives error.)
file #38731:  b102.scm added by chaw (320B - text/x-scheme - b101.scm works fine; b102.scm gives error.)

 

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 chaw (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-10-14 bothner StatusNone Works For Me
        Assigned toNone bothner
    2016-10-14 chaw Attached File- Added b101.scm, #38730
        Attached File- Added b102.scm, #38731

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code