bug-kawa
[Top][All Lists]
Advanced

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

[Bug-kawa] [bug #39947] Bad resolution of java.util.HashSet.addAll()


From: Per Bothner
Subject: [Bug-kawa] [bug #39947] Bad resolution of java.util.HashSet.addAll()
Date: Sun, 08 Sep 2013 05:55:11 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.65 Safari/537.36

Update of bug #39947 (project kawa):

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

    _______________________________________________________

Follow-up Comment #1:

There are actually 3 methods - which a newer version of Kawa shows:
/home/bothner/Kawa/work1/testsuite/sva39947.scm:2:3: warning - more than one
definitely applicable method `addAll' in java.util.HashSet
  candidate: boolean
java.util.AbstractCollection.addAll(java.util.Collection)
  candidate: boolean java.util.Collection.addAll(java.util.Collection)
  candidate: boolean java.util.Set.addAll(java.util.Collection)

The Java Languages Specification v 3 section 15.12.2.5 "Choosing the Most
Specific Method" has special rules (near the end) for disambiguating this
situation, when all except possibly one of the methods are abstract.  I
implemented (an approximation) of these rules.  I checked that in, along with
the test-case, which now works. Thanks!


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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