bugKawa - Bugs: bug #38890, Wrong more than one applicable...

 
 

bug #38890: Wrong more than one applicable method warning

Submitted by:  Matthieu Vachon <maoueh>
Submitted on:  Sun 05 May 2013 03:39:45 AM UTC  
 
Category: Scheme languageSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Per Bothner <bothner>
Open/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Sat 11 May 2013 06:35:32 PM UTC, comment #1:

This one was rather tricky. The second method is actually the addAll method inherited from Collection. We adjust the "declaring class" to Set for improved bytecode binary compatibility, in the same way that javac does. However, we did this in a way that confused Kawa's overload resolution. The fix was to use two different Method objects for the two different purposes (overload resolution/type-checking vs code-generation).

Fix and testcase checked in.

Per Bothner <bothner>
Project AdministratorIn charge of this item.
Sun 05 May 2013 03:39:45 AM UTC, original submission:

When compiling the attached file, Kawa issues a warning saying there is more than one applicable method for set `addAll`. Here the relevant part of the file:

In my opinion, this is a bug since there is only one
definition for `addAll` in `java.util.Set`. The report warning shows twice the same signature, at least in its String form. Here the full compile log:

Regards,
Matt

Matthieu Vachon <maoueh>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #28021:  set-add-all.scm added by maoueh (467B - application/octet-stream - Kawa file showing the problem)

 

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 maoueh (Submitted the item)
  • -unavailable- added by maoueh
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 11 May 2013 06:35:32 PM UTCbothnerStatusNone=>Fixed
      Assigned toNone=>bothner
      Open/ClosedOpen=>Closed
    Sun 05 May 2013 03:39:45 AM UTCmaouehAttached File-=>Added set-add-all.scm, #28021
      Carbon-Copy-=>Added maoueh

    Back to the top


    Powered by Savane 3.1-cleanup