[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-kawa] [bug #38891] Wrong warning with literal double value
From: |
Matthieu Vachon |
Subject: |
[Bug-kawa] [bug #38891] Wrong warning with literal double value |
Date: |
Sun, 05 May 2013 03:52:35 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31 |
URL:
<http://savannah.gnu.org/bugs/?38891>
Summary: Wrong warning with literal double value
Project: Kawa
Submitted by: maoueh
Submitted on: Sun 05 May 2013 03:52:34 AM GMT
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
I saw a similar bug report in the list but since it was quite old (2003), I
will submit a new one. Feel free to close it if you think it's a duplicate.
When compiling the following code, Kawa will issue a warning saying there is
more than one applicable method:
(define (test)
(make <java.lang.Double> 3.0))
Full compile log is:
(compiling make-double.scm to org.kawa.test.double)
make-double.scm:4:3: warning - more than one possibly applicable method
'<init>' in java.lang.Double
candidate: java.lang.Double java.lang.Double.<init>(double)
candidate: java.lang.Double java.lang.Double.<init>(java.lang.String)
In my opinion, since I directly enter a double literal (3.0), Kawa should
automatically assume I want to use the double version.
I attached my test file for easier testing.
Regards,
Matt
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sun 05 May 2013 03:52:34 AM GMT Name: make-double.scm Size: 104B By:
maoueh
Kawa test file
<http://savannah.gnu.org/bugs/download.php?file_id=28022>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38891>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Bug-kawa] [bug #38891] Wrong warning with literal double value,
Matthieu Vachon <=