rjb 1.0.7-mswin32 → 1.0.8-mswin32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ext/rjb.c +4 -1
- data/lib/rjbcore.so +0 -0
- data/test/test.rb +3 -0
- metadata +2 -2
data/ext/rjb.c
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
* $Id: rjb.c 19 2007-09-14 14:59:29Z arton $
|
16
16
|
*/
|
17
17
|
|
18
|
-
#define RJB_VERSION "1.0.
|
18
|
+
#define RJB_VERSION "1.0.8"
|
19
19
|
|
20
20
|
#include "ruby.h"
|
21
21
|
#include "st.h"
|
@@ -538,6 +538,9 @@ static VALUE jv2rv_withprim(JNIEnv* jenv, jobject o)
|
|
538
538
|
case 'c':
|
539
539
|
jv.c = (*jenv)->CallCharMethod(jenv, o, jpcvt[i].to_prim_id);
|
540
540
|
break;
|
541
|
+
case 'l':
|
542
|
+
jv.j = (*jenv)->CallLongMethod(jenv, o, jpcvt[i].to_prim_id);
|
543
|
+
break;
|
541
544
|
default:
|
542
545
|
rb_raise(rb_eRuntimeError, "no convertor defined(%d)", i);
|
543
546
|
break;
|
data/lib/rjbcore.so
CHANGED
Binary file
|
data/test/test.rb
CHANGED
@@ -456,6 +456,9 @@ class TestRjb < Test::Unit::TestCase
|
|
456
456
|
jByte = Rjb::import('java.lang.Byte')
|
457
457
|
assert_equal(5, jByte.valueOf('5'))
|
458
458
|
assert_equal(-6, jByte.valueOf('-6'))
|
459
|
+
jLong = Rjb::import('java.lang.Long')
|
460
|
+
assert_equal(500000, jLong.valueOf('500000'))
|
461
|
+
assert_equal(-600000, jLong.valueOf('-600000'))
|
459
462
|
end
|
460
463
|
end
|
461
464
|
|
metadata
CHANGED