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

 
 

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

Submitter:  Charles Turner <charlest>
Submitted:  Sun 21 Oct 2012 03:50:48 PM UTC
   
 
Category:  Scheme language Severity:  3 - Normal
Item Group:  Unexpected result Status:  Fixed
Privacy:  Public Assigned to:  bothner
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group administrator
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 Files:
   
   
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
  • -email is unavailable- added by bothner (Posted a comment)
  • -email is unavailable- added by charlest (Submitted the item)
  •  

    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
    2012-11-04 bothner StatusNone Fixed
        Assigned toNone bothner
        Open/ClosedOpen Closed
    2012-10-21 charlest Attached File- Added expt.patch, #26808

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code