bug-kawa
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-kawa] [bug #38890] Wrong more than one applicable method warning


From: Per Bothner
Subject: [Bug-kawa] [bug #38890] Wrong more than one applicable method warning
Date: Sat, 11 May 2013 18:35:33 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0

Update of bug #38890 (project kawa):

                  Status:                    None => Fixed                  
             Assigned to:                    None => bothner                
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up 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.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?38890>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]