Closed Bug 442444 Opened 16 years ago Closed 5 years ago

private / protected fields for FunctionObject makes extending difficult

Categories

(Rhino Graveyard :: Core, enhancement)

1.7R1
enhancement
Not set
normal

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.
Version: other → 1.7R1
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.

Closing. Bug management is now done here:
https://github.com/mozilla/rhino

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.