Closed Bug 14060 Opened 25 years ago Closed 25 years ago

exec methods not callable through LiveConnect

Categories

(Rhino Graveyard :: Core, defect, P3)

x86
Windows NT
defect

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.
Status: NEW → ASSIGNED
Component: Javascript Engine → Core
Product: Browser → Rhino
Moving Rhino bugs to new Rhino product.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
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.