Skip to content

ClassCastException when tries to convert numeric return value of overridden methods #139

@slavchev

Description

@slavchev

Let's have the following Java class

public class Class1 {
  public long getValue() {
    ... 
  }
}

This class is extended in JavaScript as follows:

var MyClass1 = Class1.extend({
  getValue: function() {
    return 1;
  }
});
var mc1 = new MyClass1();

When Java calls getValue of mc1 it fails with ClassCastException.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions