Closed
Bug 868492
Opened 11 years ago
Closed 5 years ago
1.7R4 regression: cannot pass bound functions to java methods accepting Callable
Categories
(Rhino Graveyard :: Core, defect)
Rhino Graveyard
Core
Tracking
(Not tracked)
RESOLVED
INACTIVE
People
(Reporter: deubeulyou, Unassigned)
Details
Attachments
(1 file)
1.26 KB,
text/plain
|
Details |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.65 Safari/537.31 Steps to reproduce: Updated rhino to 1.7R4 from 1.7R3 Actual results: Javascript code that passes a bound function to java methods that take Callable stopped working; for example something like the following executorService.submit(callback.bind(this, item)); breaks with: org.mozilla.javascript.EvaluatorException: Cannot convert org.mozilla.javascript.BoundFunction@5dc1bab3 to java.util.concurrent.Callable Expected results: Rhino should adapt bound functions like it did in previous releases. Maybe BoundFunction should be adapted like NativeObject and NativeFunction - if so, I have a pull request that does that here: https://github.com/stefanp/rhino/commit/7caab74517121388cb421c937ded7ecb823c2f2b Also attaching the diff (against 1.7R4) here for convenience.
Comment 1•5 years ago
|
||
Closing. Bug management is now done here:
https://github.com/mozilla/rhino
Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → INACTIVE
You need to log in
before you can comment on or make changes to this bug.
Description
•