bugKawa - Bugs: bug #6268, warning unless 1024 is cast to...

 
 

bug #6268: warning unless 1024 is cast to <int>

Submitted by:  Per Bothner <bothner>
Submitted on:  Fri 31 Oct 2003 06:00:14 PM UTC  
 
Category: Scheme languageSeverity: 2 - Minor
Item Group: Bad diagnosticStatus: None
Privacy: PublicAssigned to: Per Bothner <bothner>
Open/Closed: Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 24 Mar 2005 05:03:39 AM UTC, comment #2:

I just noticed this annoyance myself. It would be nice if Kawa would recognize when numerical literals (Kawa has constant folding too, yes?) do coerce. Since I'm assuming tighter code would be generated (as I'm guessing the warning means intValue or some other method gets called on the numerical object, or even worse that the method is looked up at dispatch) I vote to upgrade this to a "RFE".

Jim White <jimwhite>
Sat 01 Nov 2003 02:11:38 AM UTC, comment #1:

This is a test of the bug-kawa list.

Per Bothner <bothner>
Project AdministratorIn charge of this item.
Fri 31 Oct 2003 06:00:14 PM UTC, original submission:

The attached file when compiled with kawa -C prints:
sec.scm:4:4: warning - no definitely applicable method `initialize' in java.security.KeyPairGenerator
Replacing to "1024" to "(as <int> 1024)" works.

Per Bothner <bothner>
Project AdministratorIn charge of this item.

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #780:  sec.scm added by bothner (229B - application/octet-stream)

 

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

Date Changed By Updated Field Previous Value => Replaced By
Sat 01 Nov 2003 07:02:05 AM UTCbothnerCategoryNone=>(Error - Not Found)
  Severity2,5=>(Error - Not Found)
  Item GroupNone=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1