Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.7.0.pre2
-
Fix Version/s: JRuby 1.7.0.pre2
-
Component/s: Extensions
-
Labels:
-
Environment:OSX 10.6.8, java7u2
-
Number of attachments :
Description
Run the example code:
https://gist.github.com/3274964
Output is:
devmac:ffi-rzmq cremes$ rvm jruby-head
devmac:ffi-rzmq cremes$ ruby -v
jruby 1.7.0.preview2.dev (1.9.3p203) 2012-08-06 3737fc5 on OpenJDK 64-Bit Server VM 1.7.0-u2-b21-20111216 [darwin-amd64]
devmac:ffi-rzmq cremes$ ruby break_jruby.rb
NoMethodError: undefined method `write_string' for #<FFI::Pointer address=0x10a94c1e0>
(root) at break_jruby.rb:14
This example code executes successfully on other runtimes including earlier versions of JRuby (1.6.7.2).
Looks like one or more of the .rb files for FFI are no longer getting loaded when you require 'ffi', including pointer.rb which includes the write_string definition.