If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

private / protected fields for FunctionObject makes extending difficult

UNCONFIRMED
Unassigned

Status

Rhino
Core
--
enhancement
UNCONFIRMED
9 years ago
9 years ago

People

(Reporter: Hervé Girod, Unassigned)

Tracking

Details

(Reporter)

Description

9 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

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

Comment 1

9 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.
You need to log in before you can comment on or make changes to this bug.