Skip to content

Conversation

@jimlloyd
Copy link
Contributor

@joeferner This is one problem I have run into while working on promises support. It seems that there has been a latent bug with node-java on OpenJDK 1.6. This bug is demonstrated by calling Iterator.next() on an iterator returned from an ArrayList. A java.lang.InternalError exception is thrown. I coded it up with both Sync calls and Async calls. The async version provides an interesting clue. The async call to next() seems to execute without error, but the callback is called with val undefined. It is then when test.strictEqual(val, 'hello') is called that the exception is thrown.

This bug is not present when using Oracle 1.7 and 1.8 JDKs. We have no interest in support for 1.6, so we won't invest any time in trying to fix this bug. For promises support, I intend to disable affected tests at runtime by checking the system property java.version.

@joeferner
Copy link
Owner

I think I may just drop support for 1.6. My company has finally switched all of our stuff to 1.7 so it won't impact me. 1.6 is also not supported by Oracle (in fact 1.7 is going to lose support this summer I think).

@jimlloyd
Copy link
Contributor Author

Ok. +1 for dropping support.

@jimlloyd jimlloyd closed this Jan 14, 2015
@joeferner
Copy link
Owner

see #188

@jimlloyd jimlloyd deleted the bug/arraylist-iterator branch January 14, 2015 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants