bugKawa - Bugs: bug #39945, "Too few arguments"...

 
 

bug #39945: "Too few arguments" warning when declaring an anonymous class in a let block

Submitted by:  None
Submitted on:  Wed 04 Sep 2013 10:04:46 PM UTC  
 
Category: Type declaration and inferenceSeverity: 3 - Normal
Item Group: Run-time exceptionStatus: Fixed
Privacy: PublicAssigned to: Per Bothner <bothner>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sun 08 Sep 2013 12:08:23 AM UTC, comment #1:

Thanks - I checked in a fix and test-case for this.

Per Bothner <bothner>
Project AdministratorIn charge of this item.
Wed 04 Sep 2013 10:04:46 PM UTC, original submission:

Declaring an anonymous Runnable this way works just fine:

But using it in a let block results in a cryptic runtime error message:

This might be an issue with inferencing the type of the anonymous Runnable class when used in a let block.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

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)
  •  

    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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 08 Sep 2013 12:08:23 AM UTCbothnerStatusNone=>Fixed
      Assigned toNone=>bothner
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1