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

 
 

bug #8577: Extraneous warnings in method invokation

Submitted by:  None
Submitted on:  Thu 15 Apr 2004 02:40:21 AM UTC  
 
Category: Scheme languageSeverity: 3 - Normal
Item Group: Bad diagnosticStatus: 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.

 

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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

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

Date Changed By Updated Field Previous Value => Replaced By
Thu 13 May 2004 07:25:23 PM UTCbothnerStatusWorks For Me=>Fixed
  Open/ClosedOpen=>Closed
Sun 18 Apr 2004 01:17:05 AM UTCbothnerStatusNone=>Works For Me
  Assigned toNone=>bothner

Back to the top


Powered by Savane 3.1-cleanup1