Scope leaked between contexts/optimization bug starting in Java 9

2019-08-19 Thread Ryan Berdeen
I've encountered what seems like bug introduced in Java 9 where variables can be leaked by the engine across separate contexts. I've extracted this minimal reproduction out of service I'm running in projection in Java 8. Gist: https://gist.github.com/also/412ce859f10f0b501bbfc43d15342dfc Given thi

Longs aren't numbers in Java 8u162

2018-04-30 Thread Ryan Berdeen
I encountered an issue when upgrading from Java 8u66 to 8u162. In 8u66, java.lang.Integer and java.lang.Long both behaved as JS numbers. In 8u162 (and 10.0.1), Longs behave differently in a way that is breaking my application. function test(n) { print(n); print(typeof n); pri

Broken property access on objects from other contexts?

2017-03-09 Thread Ryan Berdeen
I'm running into an issue passing plain JS objects to a function created with loadWithNewGlobal. I didn't expect property access to behave differently on objects from other contexts, but the behavior when using numeric keys seems broken. Is there a safe way to pass objects between contexts so that