Closed
Bug 442444
Opened 17 years ago
Closed 6 years ago
private / protected fields for FunctionObject makes extending difficult
Categories
(Rhino Graveyard :: Core, enhancement)
Tracking
(Not tracked)
RESOLVED
INACTIVE
People
(Reporter: herve.girod, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14
Build Identifier: 1.7 R1
The defined Property method of ScriptableObject allows to add properties to arbitrary Scriptable object. As properties can be FunctionObjects, it allows to extend FunctionObject functionalities.
However, to ease FunctionObject extension, some of its methods /fields should be protected rather than private:
- Member,
- parmsLength,
- VARARGS_METHOD and VARARGS_CTOR,
- hasVoidreturn,
- returnTypeTag
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Reporter | ||
Updated•17 years ago
|
Version: other → 1.7R1
Reporter | ||
Comment 1•17 years ago
|
||
One usage scenario is to be able to call specific methods rather than the methods of the underlying Java class. TO do this, the user must extend the call method.
Comment 2•6 years ago
|
||
Closing. Bug management is now done here:
https://github.com/mozilla/rhino
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → INACTIVE
You need to log in
before you can comment on or make changes to this bug.
Description
•