JavaField.set_value(foo, nil) breaks
------------------------------------
Key: JRUBY-2561
URL: http://jira.codehaus.org/browse/JRUBY-2561
Project: JRuby
Issue Type: Bug
Components: Java Integration
Affects Versions: JRuby 1.1+
Reporter: Evan David Light
Priority: Critical
JAVA:
public class PrivateField {
private String strField;
}
JRUBY:
import 'PrivateField'
p = PrivateField.new
f = PrivateField.java_class.declared_field 'strField'
f.accessible = true
# This just causes an Exception because 'nil' isn't a JavaObject (set_value
doesn't do any conversion)
f.set_value(p.java_object, nil)
# This, however, causes an NPE
f.set_Value(p.java_object, Java.ruby_to_java(nil))
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email