Closed
Bug 31639
Opened 25 years ago
Closed 25 years ago
Oldstyle Java property method names no longer work with defineClass
Categories
(Rhino Graveyard :: Core, defect, P3)
Rhino Graveyard
Core
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: rbk, Assigned: norrisboyd)
Details
Since at least release 1.5beta, the defineClass method in org.mozilla.javascript.ScriptableObject no longer works with the old way of defining properties in Java classes - e.g. public class Foo extends Scriptable Object { public String jsProperty_getFoo() { return foo; } } causes a ArrayIndexOutOfBoundsException to be thrown. The problem is at line 900 where the jsProperty_ prefix is removed from the method name, and then removed again at line 909. Richard.
Assignee | ||
Comment 1•25 years ago
|
||
Doh! Thanks for pointing this out. Fixed: Checking in ScriptableObject.java; /m/pub/mozilla/js/rhino/org/mozilla/javascript/ScriptableObject.java,v <-- Scr iptableObject.java new revision: 1.17; previous revision: 1.16 done
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•