Closed
Bug 264319
Opened 20 years ago
Closed 19 years ago
Method uneval in org.mozilla.javascript.ScriptRuntime should be public.
Categories
(Rhino Graveyard :: Core, enhancement)
Rhino Graveyard
Core
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: teemu.tingander, Assigned: igor)
Details
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322) Build Identifier: Rhino150R5_RELEASE Since there is no way programmatically access uneval() function, the uneval function should be public as all other static functions in ScriptRuntime are. There seems to be no reason why this methdod is now defined as package visibility. Reproducible: Always Steps to Reproduce:
| Assignee | ||
Comment 1•20 years ago
|
||
1. ScriptRuntime is not a part of public Rhino API and if you use any function
there then do not expect any compatibility between releases! The class is public
purely for technical reason so the generated classes can access it.
2. If necessary a public function can be added to Context.
3. As a workarround for current Rhino use
ScriptableObject.callMethod("uneval", scope, new Object[] { valueToUneval });
to access the function from java code.
Severity: major → enhancement
| Assignee | ||
Updated•19 years ago
|
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•