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

 
 

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

Submitted by:  Sudarshan S Chawathe <chaw>
Submitted on:  Fri 14 Oct 2016 02:02:25 PM UTC  
 
Category: Scheme languageSeverity: 3 - Normal
Item Group: Compile-time exceptionStatus: Works For Me
Privacy: PublicAssigned to: Per Bothner <bothner>
Open/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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 File(s):
   
   
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
  • -unavailable- added by bothner (Posted a comment)
  • -unavailable- added by chaw (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 14 Oct 2016 05:54:25 PM UTCbothnerStatusNone=>Works For Me
      Assigned toNone=>bothner
    Fri 14 Oct 2016 02:02:25 PM UTCchawAttached File-=>Added b101.scm, #38730
      Attached File-=>Added b102.scm, #38731

    Back to the top


    Powered by Savane 3.1-cleanup1