bugKawa - Bugs: bug #8577, Extraneous warnings in method...

 
 

bug #8577: Extraneous warnings in method invokation

Submitter:  None
Submitted:  Thu 15 Apr 2004 02:40:21 AM UTC
   
 
Category:  Scheme language Severity:  3 - Normal
Item Group:  Bad diagnostic Status:  Fixed
Privacy:  Public Assigned to:  bothner
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 13 May 2004 07:25:23 PM UTC, comment #2: 

We found a test that triggered the bug.
The fix and the testcase are now in CVS.

Per Bothner <bothner>
Group administrator
Sun 18 Apr 2004 01:17:05 AM UTC, comment #1: 

It works for me, using CVS Kawa, 1.7.90,
and older versions (such as 1.6.70).

Per Bothner <bothner>
Group administrator
Thu 15 Apr 2004 02:40:21 AM UTC, original submission:  

Kawa does not pick out the overloaded method to invoke at compile time.  This results in some errors and run time method look up.

(define-namespace timestamp "class:java.sql.Timestamp")

(define (foo a b)
  (timestamp:compareTo (as <java.sql.Timestamp> a)
                       (as <java.sql.Timestamp> b)))


gives this warning:Bar.scm:13:4: warning - more than one definitely applicable method `compareTo' in java.sql.Timestamp
Bar.scm:13:4: warning - candidate: int java.util.Date.compareTo(java.util.Date)
Bar.scm:13:4: warning - candidate: int java.sql.Timestamp.compareTo(java.lang.Object)
Bar.scm:13:4: warning - candidate: int java.sql.Timestamp.compareTo(java.sql.Timestamp)

Thanks,
Chris Dean



Compile this code:


Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 4 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-05-13 bothner StatusWorks For Me Fixed
    Open/ClosedOpen Closed
2004-04-18 bothner StatusNone Works For Me
    Assigned toNone bothner

Back to the top

Powered by Savane 3.13-4b48.
Corresponding source code