bugKawa - Bugs: bug #37607, Base argument to EXPT of static...

 
 

bug #37607: Base argument to EXPT of static double field throws exception

Submitted by:  Charles Turner <charlest>
Submitted on:  Sun 21 Oct 2012 03:50:48 PM UTC  
 
Category: Scheme languageSeverity: 3 - Normal
Item Group: Unexpected resultStatus: 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.

 

Sun 04 Nov 2012 02:10:39 AM UTC, comment #1:

Thanks - I checked this in!

(I made a minor change, to use Arithmetic.asNumeric.
That localizes the cast and error in a more specific place, potentially helping consistency.)

Per Bothner <bothner>
Project AdministratorIn charge of this item.
Sun 21 Oct 2012 03:50:48 PM UTC, original submission:

#|kawa:1|# (expt java.lang.Math:E 2)
Invalid parameter, was: java.lang.Double cannot be cast to gnu.math.Numeric
java.lang.ClassCastException: java.lang.Double cannot be cast to gnu.math.Numeric
[...]

The attached fixes this, looks like a remnant of an unchecked cast.

Charles Turner <charlest>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #26808:  expt.patch added by charlest (1KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bothner (Posted a comment)
  • -unavailable- added by charlest (Submitted the item)
  •  

    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
    Sun 04 Nov 2012 02:10:39 AM UTCbothnerStatusNone=>Fixed
      Assigned toNone=>bothner
      Open/ClosedOpen=>Closed
    Sun 21 Oct 2012 03:50:48 PM UTCcharlestAttached File-=>Added expt.patch, #26808

    Back to the top


    Powered by Savane 3.1-cleanup1