damonkohler / sl4a

SL4A brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device.
Apache License 2.0
2.42k stars 803 forks source link

JRuby 1.4 bug: recvfrom function generates NullPointerException #175

Open damonkohler opened 9 years ago

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:28

What device(s) are you experiencing the problem on?
Sony Ericsson XPERIA X10 (issue is not related to hardware platform)

What firmware version are you running on the device?
Irrelevant, see above

What steps will reproduce the problem?
1. Using the bundled JRuby interpreter, write and execute any code that uses 
the socket recvfrom function

What is the expected output? What do you see instead?
It is expected to work. Instead, a java.lang.NullPointerException is generated.

What version of the product are you using? On what operating system?
SL4A r3 running JRuby 1.4

Please provide any additional information below.
This is a known bug in JRuby 1.4 which has been fixed in 1.5. Suggest solving 
it by bundling 1.5 with SL4A instead of  1.4.

Original issue reported on code.google.com by ludvig.s...@gmail.com on 14 Jan 2011 at 12:11

Copied from original issue: damonkohler/android-scripting#505