Skip to content

Cast throws exception #725

@opeongo

Description

@opeongo
BeanShell 3.0.0-SNAPSHOT.5569
bsh % o = Double.valueOf(1);
--> $0 = 1.0d :Double
bsh % oo = (Number) o;
// Error: Unknown error: java.lang.ClassCastException: class java.lang.Double cannot be cast to class bsh.Primitive (java.lang.Double is in module java.base of loader 'bootstrap'; bsh.Primitive is in unnamed module of loader 'app')
bsh % 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions