private / protected fields for FunctionObject makes extending difficult

RESOLVED INACTIVE

Status

--
enhancement
RESOLVED INACTIVE
11 years ago
3 days ago

People

(Reporter: herve.girod, Unassigned)

Tracking

Details

(Reporter)

Description

11 years ago
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

11 years ago
Version: other → 1.7R1
(Reporter)

Comment 1

11 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.

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

Status: UNCONFIRMED → RESOLVED
Last Resolved: 3 days ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.