Closed
Bug 14060
Opened 25 years ago
Closed 25 years ago
exec methods not callable through LiveConnect
Categories
(Rhino Graveyard :: Core, defect, P3)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: norrisboyd, Assigned: rogerl)
Details
This is a bug. The "exec" method is special because when used on a Script object
it captures the
current execution environment. Something in the implementation of that special
behavior must be
broken.
In the meantime, you can use
java.lang.Runtime.getRuntime()["exec"]("prog1")
aka wrote:
Help...
I am trying to use the rhino js engine to call either the Runtime.exec
method or the JSObject.eval method eg
java.lang.Runtime.getRuntime().exec("prog1")
and keep getting
Java method "exec" was invoked with a 'this' value that was not a Java
object.
Any ideas ?
Thanks.
Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Reporter | ||
Updated•25 years ago
|
Component: Javascript Engine → Core
Product: Browser → Rhino
Reporter | ||
Comment 1•25 years ago
|
||
Moving Rhino bugs to new Rhino product.
Assignee | ||
Updated•25 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 2•25 years ago
|
||
Fixed - when 'exec' is invoked on a java object it needs the js 'this' arg, not
the function 'this' arg.
You need to log in
before you can comment on or make changes to this bug.
Description
•