rjb 1.3.3 → 1.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +528 -520
- data/ext/jp_co_infoseek_hp_arton_rjb_RBridge.h +0 -0
- data/ext/rjb.c +31 -8
- data/test/jp/co/infoseek/hp/arton/rjb/Base.class +0 -0
- data/test/jp/co/infoseek/hp/arton/rjb/ExtBase.class +0 -0
- data/test/test.rb +11 -1
- metadata +8 -4
- data/ext/extconf.h +0 -9
data/ChangeLog
CHANGED
@@ -1,520 +1,528 @@
|
|
1
|
-
|
2
|
-
*ext/rjb.c
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
*test/
|
8
|
-
add
|
9
|
-
|
10
|
-
*ext/rjb.c
|
11
|
-
RJB_VERSION -> 1.3.
|
12
|
-
*
|
13
|
-
|
14
|
-
|
15
|
-
*
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
*
|
21
|
-
|
22
|
-
|
23
|
-
*ext/rjb.c
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
*
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
*
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
*ext/
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
add add_jar
|
49
|
-
|
50
|
-
*
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
*
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
*ext/rjb.
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
*
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
*ext/
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
add
|
131
|
-
Tue May
|
132
|
-
*ext/
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
*ext/
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
*ext/
|
148
|
-
|
149
|
-
|
150
|
-
*
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
*
|
159
|
-
|
160
|
-
|
161
|
-
*ext/load.c
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
*
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
*
|
172
|
-
|
173
|
-
|
174
|
-
*
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
*ext/
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
*ext/
|
204
|
-
|
205
|
-
|
206
|
-
*ext/rjb.c
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
*
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
*ext/
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
*ext/
|
225
|
-
*ext/
|
226
|
-
|
227
|
-
|
228
|
-
*
|
229
|
-
|
230
|
-
*test/test.rb
|
231
|
-
|
232
|
-
|
233
|
-
*
|
234
|
-
|
235
|
-
*
|
236
|
-
|
237
|
-
|
238
|
-
*
|
239
|
-
|
240
|
-
|
241
|
-
*
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
*rjb.c
|
250
|
-
|
251
|
-
|
252
|
-
*
|
253
|
-
|
254
|
-
|
255
|
-
*
|
256
|
-
|
257
|
-
*
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
*
|
263
|
-
|
264
|
-
*
|
265
|
-
|
266
|
-
|
267
|
-
*
|
268
|
-
|
269
|
-
|
270
|
-
*
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
*
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
*
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
*
|
318
|
-
add
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
*
|
326
|
-
add
|
327
|
-
|
328
|
-
|
329
|
-
*
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
*
|
341
|
-
|
342
|
-
*
|
343
|
-
add
|
344
|
-
*rjb.
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
*
|
349
|
-
|
350
|
-
*
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
*
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
*
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
*load.c
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
*
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
*
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
*
|
395
|
-
add
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
*
|
403
|
-
add
|
404
|
-
|
405
|
-
|
406
|
-
*rjb.c
|
407
|
-
version 0.2.
|
408
|
-
|
409
|
-
|
410
|
-
*test.rb
|
411
|
-
add
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
*
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
*load.c
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
*
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
*rjb.
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
*
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
*rjb.c
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
*rjb.c
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
checking
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
1
|
+
Mon Nov 22 arton
|
2
|
+
*ext/rjb.c
|
3
|
+
RJB_VERSION -> 1.3.4
|
4
|
+
require 'iconv' only if RUBY_VERSION < 1.9.0
|
5
|
+
implicitly accept ruby's String for [B (byte array)
|
6
|
+
copy back byte[] contents into original String
|
7
|
+
*test/test.rb
|
8
|
+
add string buffer test (test_bothdirection_buffer)
|
9
|
+
Wed Nov 17 arton
|
10
|
+
*ext/rjb.c
|
11
|
+
RJB_VERSION -> 1.3.3
|
12
|
+
*ext/load.c
|
13
|
+
Check JAVA_HOME before load JVM (OS X specific)
|
14
|
+
change int -> size_t for 64bit OS
|
15
|
+
*test/test_osxjvm.rb
|
16
|
+
add new test for OS X specific JVM detection.
|
17
|
+
Sat Oct 30 arton
|
18
|
+
*ext/rjb.c
|
19
|
+
RJB_VERSION -> 1.3.2
|
20
|
+
*extconf.rb
|
21
|
+
Change OSX's include path detecting
|
22
|
+
Tue Oct 26 arton
|
23
|
+
*ext/rjb.c
|
24
|
+
RJB_VERSION -> 1.3.1
|
25
|
+
*rjb.rake
|
26
|
+
make universal-darwin gem for Mac bundled ruby.
|
27
|
+
Sun Oct 24 arton
|
28
|
+
*sample/filechooser.rb
|
29
|
+
omit Thread use (cause JVM crush with 1.9 and StackOverflow with 1.8)
|
30
|
+
Sat Oct 23 arton
|
31
|
+
*ext/rjb.c
|
32
|
+
RJV_VERSION -> 1.3.0
|
33
|
+
add loaded? class method.
|
34
|
+
add add_classpath method (add jars without invoking load method)
|
35
|
+
*ext/load.c
|
36
|
+
OSX default jvm name changes to "JavaVM" (bug#28667 reported by Jeff Adams, thanks Jeff !)
|
37
|
+
*ext/extconf.rb
|
38
|
+
OSX javahome set to /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK
|
39
|
+
*lib/rjbextension.rb
|
40
|
+
use Rjb::add_classpath method instead of Kernel's class vars.
|
41
|
+
*test/test.rb, test/exttest.rb
|
42
|
+
fix add_jar test, previous version load them from jp directory.
|
43
|
+
Tue Sep 22 arton
|
44
|
+
*ext/rjb.c
|
45
|
+
RJV_VERSION -> 1.2.10
|
46
|
+
add add_jars method. add_jar and add_jars can take an array of jars.
|
47
|
+
*test/test.rb
|
48
|
+
add calling add_jar with an array test.
|
49
|
+
Tue Sep 21 arton
|
50
|
+
*ext/rjb.h
|
51
|
+
export ClassLoader methods
|
52
|
+
*ext/load.c
|
53
|
+
move ClassLoader interaction codes into rjb.c
|
54
|
+
*ext/rjb.c
|
55
|
+
RJV_VERSION -> 1.2.9
|
56
|
+
add add_jar method.
|
57
|
+
loading classes throgh URLClassLoader if the user add Jars
|
58
|
+
*lib/rjb.rb
|
59
|
+
change MODIFIER module into a constant. Because it implys Rjb::import.
|
60
|
+
change Config -> RbConfig for 1.9
|
61
|
+
*test/test.rb
|
62
|
+
add Rjb::add_jar test
|
63
|
+
*test/JarTest.java
|
64
|
+
*test/jartest.jar
|
65
|
+
add for Rjb::add_jar test
|
66
|
+
Fri Sep 17 arton
|
67
|
+
*test/test.rb
|
68
|
+
sort arguments order for test_java_methods (the order is implement dependent)
|
69
|
+
add fixnum conversion test for 64bit platform (test_64fixnum)
|
70
|
+
*ext/rjb.c
|
71
|
+
RJV_VERSION -> 1.2.8
|
72
|
+
fix rv2jlong bug, the solution was suggested by Ary Borenszweig
|
73
|
+
Sun Aug 29 arton
|
74
|
+
*ext/rjb.c
|
75
|
+
ignore no arguments method signature.
|
76
|
+
name base classes under Rjb module.
|
77
|
+
*lib/rjb.rb
|
78
|
+
implements public_methods and methods
|
79
|
+
*test/test.rb
|
80
|
+
add non arguments method sig test
|
81
|
+
add methods, public_methods, java_methods test
|
82
|
+
Thu Jul 22 arton
|
83
|
+
*ext/rjb.c
|
84
|
+
RJB_VERSION -> 1.2.6
|
85
|
+
export jv2rv for rjbexception.c
|
86
|
+
*ext/rjb.h
|
87
|
+
export jv2rv for rjbexception.c
|
88
|
+
*ext/rjbexception.c
|
89
|
+
create and keep java exception object for its properties.
|
90
|
+
*test/test.rb
|
91
|
+
add Exception#cause test
|
92
|
+
Wed Jun 9 arton
|
93
|
+
*ext/load.c
|
94
|
+
accept JAVA_HOME having an extra slash at the end
|
95
|
+
*ext/rjb.c
|
96
|
+
RJB_VERSION -> 1.2.5
|
97
|
+
Fri Jun 5 arton
|
98
|
+
*ext/rjb.h
|
99
|
+
defin HAVE_LONG_LONG if no HAVE_LONG_LONG but LP64
|
100
|
+
*ext/rjb.c
|
101
|
+
remove unused variables
|
102
|
+
RJB_VERSION -> 1.2.4
|
103
|
+
Fri Jun 4 arton
|
104
|
+
*ext/riconv.c
|
105
|
+
remove unused function if build with Ruby 1.9
|
106
|
+
*ext/rjb.c
|
107
|
+
RJB_VERSION -> 1.2.3
|
108
|
+
to accomodate with rubinius
|
109
|
+
*ext/load.c
|
110
|
+
to accomodate with rubinius
|
111
|
+
*ext/rjbexception.c
|
112
|
+
to accomodate with rubinius
|
113
|
+
Sun May 30 arton
|
114
|
+
*lib/rjbextension.rb
|
115
|
+
Rjb extension from Andreas Ronge's neo4j
|
116
|
+
- directly import jar by require method
|
117
|
+
- Rjb::import without quotations (Java class as Ruby object)
|
118
|
+
*test/exttest.rb
|
119
|
+
test for rjbextension.rb
|
120
|
+
*test/rjbtest.jar
|
121
|
+
test file for rjbextension.rb
|
122
|
+
Sat May 29 arton on behalf of atoulme
|
123
|
+
*ext/rjb.c
|
124
|
+
*ext/load.c
|
125
|
+
*ext/rjbexception.c
|
126
|
+
to accomodate with rubinius
|
127
|
+
thanks atoulme !
|
128
|
+
Wed May 12 arton
|
129
|
+
*test/test.rb
|
130
|
+
add Class name for TestMixin module because ruby 1.9 doesn't handle the constant.
|
131
|
+
Tue May 11 arton
|
132
|
+
*ext/rjb.c
|
133
|
+
fix duplicate method registering while no alias.
|
134
|
+
add class methods for inspecting method signatures.
|
135
|
+
add class_eval method for extending Java class
|
136
|
+
*test/test.rb
|
137
|
+
add class methods test for inspecting method signatures.
|
138
|
+
add mixin tests
|
139
|
+
Tue May 4 arton
|
140
|
+
*ext/load.c
|
141
|
+
corrected wrong function signature (BUG#28088), pointed and fixed by Romulo A. Ceccon (thanks)
|
142
|
+
*ext/rjb.c
|
143
|
+
using inheritance check while inspecting a object is RJB's instance (for extending it).
|
144
|
+
Tue Mar 16 arton
|
145
|
+
*ext/riconv.c
|
146
|
+
change locale setting "" to "C", fixed by Fabien Sartor (rjb-Bugs-27968)
|
147
|
+
*ext/rjb.c
|
148
|
+
RJB_VERSION -> 1.2.1
|
149
|
+
Sun Nov 1 arton
|
150
|
+
*ext/load.c
|
151
|
+
load jvm pointed by JVM_LIB environment variable first (suggested by Ittay Dror).
|
152
|
+
*ext/rjb.c
|
153
|
+
RJB_VERSION -> 1.2.0
|
154
|
+
Sun Oct 11 arton
|
155
|
+
*ext/extconf.rb
|
156
|
+
add double quotation around include path for mingw compiler, original patched by Roger Pack (thanks)
|
157
|
+
remove double quotaion around java_home variable for existing checking by File.directoy?
|
158
|
+
*rjb.rake
|
159
|
+
adding mingw support for the older version compatibility checking
|
160
|
+
Thu Sep 10 arton
|
161
|
+
*ext/load.c
|
162
|
+
Correct previous code (always reload jvm if OSX < Snow Leopard)
|
163
|
+
Clear DL's exception if success
|
164
|
+
*ext/rjb.c
|
165
|
+
RJB_VERSION -> 1.1.9
|
166
|
+
*ext/rjbexception.c
|
167
|
+
fit arguments for rb_raise to shut warning down
|
168
|
+
Mon Sep 07 arton
|
169
|
+
*ext/load.c
|
170
|
+
Check no compat type dylib after loading was failed (for Snow Leopard)
|
171
|
+
*ext/rjb.c
|
172
|
+
RJB_VERSION -> 1.1.8
|
173
|
+
Sun Feb 15 arton
|
174
|
+
*test/test/rb
|
175
|
+
add $KCODE and magic comment for iconv
|
176
|
+
*ext/rjb.c
|
177
|
+
RJB_VERSION -> 1.1.7
|
178
|
+
Thu Feb 5 kuwa1
|
179
|
+
*test/Test.java
|
180
|
+
*test/test.rb
|
181
|
+
add tests(Umlaut)
|
182
|
+
*ext/rjb.c
|
183
|
+
*ext/load.c
|
184
|
+
fix for ruby19
|
185
|
+
Sun Nov 16 arton
|
186
|
+
*ext/load.c
|
187
|
+
apply hpux patch, contributed by Ittay Dror. thanks
|
188
|
+
Tue Aug 26 arton
|
189
|
+
*ext/load.c, rjb.c, rjb.h
|
190
|
+
export safe_funcall under the prefix 'rjb'.
|
191
|
+
calling DL with rb_protect for avoiding exception.
|
192
|
+
Mon Aug 25 arton
|
193
|
+
*ext/load.c
|
194
|
+
Fix checking the result for loading alternate_jvm_type.
|
195
|
+
(patch from Kumar, thanks)
|
196
|
+
Thu Aug 14 arton
|
197
|
+
*ext/rjb.c, load.c, etc
|
198
|
+
change comment line // -> /* */ because AIX's compiler
|
199
|
+
add _AIX for load.c (this patch from Ittay Dror, thanks)
|
200
|
+
*ext/load.c
|
201
|
+
add ALT_JVM_TYPE for alternative jvm directory (by Kumar)
|
202
|
+
Sun Jul 13 arton
|
203
|
+
*ext/rjb.c
|
204
|
+
display warning when Rjb load jvm implicitly if $DEBUG or $VERBOSE.
|
205
|
+
Mon May 26 arton
|
206
|
+
*ext/rjb.c
|
207
|
+
correct char primitive conversion for Bigendian machine.
|
208
|
+
use macroes for loading classes
|
209
|
+
*ext/load.c
|
210
|
+
adjust OS X's directory
|
211
|
+
*ext/extconf.rb
|
212
|
+
adjust OS X's directory if Home exists
|
213
|
+
Thu Mar 27 arton
|
214
|
+
*ext/rjb.c
|
215
|
+
mark version 1.1.4 for the next release.
|
216
|
+
*test/test.rb
|
217
|
+
remove unload, because it fails.
|
218
|
+
It's more important to assert each functions.
|
219
|
+
Thu Mar 27 arton
|
220
|
+
*ext/riconv.c
|
221
|
+
activate conv tables for getenv configuration.
|
222
|
+
Tue Mar 5 Kuwashima
|
223
|
+
*ext/rjb.c
|
224
|
+
*ext/rjb.h
|
225
|
+
*ext/rjbexception.c
|
226
|
+
add auto load method.
|
227
|
+
Tue Mar 4 Kuwashima
|
228
|
+
*ext/rjbexception.c
|
229
|
+
*ext/rjb.c
|
230
|
+
*test/test.rb
|
231
|
+
clear(ignore) exception in current java thread, before some operation.
|
232
|
+
*ext/rjbexception.c
|
233
|
+
*ext/rjb.c
|
234
|
+
add auto load for Rjb::bind, Rjb::throw
|
235
|
+
*ext/rjb.c
|
236
|
+
*test/test.rb
|
237
|
+
add Rjb::unbind
|
238
|
+
*test/test.rb
|
239
|
+
add loading rubygems
|
240
|
+
Sat Feb 23 arton
|
241
|
+
*test/test.rb
|
242
|
+
let test_field metod use Test.class instead of Point.class
|
243
|
+
*test/Test.java
|
244
|
+
add a public field for testing
|
245
|
+
Fri Feb 22 arton
|
246
|
+
*ext/rjb.c
|
247
|
+
mark version 1.1.3 for the next release.
|
248
|
+
Fri Feb 22 arton
|
249
|
+
*ext/rjb.c
|
250
|
+
fix field reference (bug# 18238)
|
251
|
+
Wed Jan 9 arton
|
252
|
+
*ext/rjb.h
|
253
|
+
add some ruby macros that defined after 1.8.6 for compatibility
|
254
|
+
Change RBridge.class by 1.4.2
|
255
|
+
*data/rjb/jp/co/infoseek/hp/arton/rjb/RBridge.class
|
256
|
+
compiled by 1.4.2 version of Java
|
257
|
+
*rjb.c
|
258
|
+
mark version 1.1.2 for the next release.
|
259
|
+
Tue Dec 27 Kuwashima
|
260
|
+
*test/Test.java
|
261
|
+
*test/test.rb
|
262
|
+
*ext/depend
|
263
|
+
*ext/load.c
|
264
|
+
*ext/extconf.rb
|
265
|
+
*ext/rjbexception.c
|
266
|
+
*ext/rjb.c
|
267
|
+
*ext/riconv.c
|
268
|
+
change for compatibility with Ruby-1.9.0
|
269
|
+
Tue Nov 20 arton
|
270
|
+
*rjb.c
|
271
|
+
mark version 1.10.12 for next relase.
|
272
|
+
*load.c
|
273
|
+
omit useless double-quotations from JAVA_HOME, maybe specifies a longpathname (but useless).
|
274
|
+
Wed Nov 14 Kuwashima
|
275
|
+
*rjb.c
|
276
|
+
add error check to constructor.
|
277
|
+
Fri Nov 9 arton
|
278
|
+
*test.rb
|
279
|
+
*Test.java
|
280
|
+
add test for reproducing rjb-bugs-15430
|
281
|
+
*rjb.c
|
282
|
+
fix rjb-bugs-15430 that caused by bad array conversion.
|
283
|
+
(generics method result signature is an object, but the real result is typed array)
|
284
|
+
*riconv.c
|
285
|
+
correct to get the number of array element.
|
286
|
+
Tue Oct 23 Kuwashima
|
287
|
+
*riconv.c
|
288
|
+
Change string encoding conversion rule.
|
289
|
+
Mon Oct 22 Kuwashima
|
290
|
+
*riconv.c
|
291
|
+
*riconv.h
|
292
|
+
recycle iconv instance.
|
293
|
+
*test/test.rb
|
294
|
+
add cases for test_kjconv
|
295
|
+
Sun Sep 23 arton
|
296
|
+
*rjb.c
|
297
|
+
version 1.0.9
|
298
|
+
convert to Ruby's type if Rjb::primitive_converion is enalbed and the result type is java.lang.Object
|
299
|
+
support the object conversion for a bignum to long.
|
300
|
+
Sat Sep 15 arton
|
301
|
+
*rjb.c
|
302
|
+
version 1.0.8
|
303
|
+
correction of 1.0.7, support long type.
|
304
|
+
Fri Sep 14 arton
|
305
|
+
*rjb.c
|
306
|
+
version 1.0.7
|
307
|
+
add auto primitive conversion toggled by Rjb::primitive_conversion
|
308
|
+
*test.rb
|
309
|
+
add test_auto_conv
|
310
|
+
Sun Jun 17 arton
|
311
|
+
*rjb.c
|
312
|
+
add method aliases.
|
313
|
+
setXxYy -> xx_yy=
|
314
|
+
getXxYy -> xx_yy
|
315
|
+
isXxYy -> xx_yy?
|
316
|
+
xxYyZz -> xx_yy_zz
|
317
|
+
*test.rb
|
318
|
+
add a test for the method alias feature.
|
319
|
+
Tue Nov 21 arton
|
320
|
+
*rjb.c
|
321
|
+
Skip the constant registering process, if the constant was already defined.
|
322
|
+
*load.c
|
323
|
+
*rjb.c
|
324
|
+
*rjbexception.c
|
325
|
+
*rjb.h
|
326
|
+
add prefix 'rjb' for externed symbol names to avoid confliction.
|
327
|
+
|
328
|
+
Sun Oct 08 arton (on behalf of richard apodaca)
|
329
|
+
*load.c
|
330
|
+
support AMD64
|
331
|
+
|
332
|
+
Mon Sep 11 arton
|
333
|
+
*test.rb
|
334
|
+
add a test of arguments types are various array.
|
335
|
+
*Test.java
|
336
|
+
add a test of arguments types are various array.
|
337
|
+
*rjb.c
|
338
|
+
accept nil for array parameter.
|
339
|
+
Sun Sep 10 arton
|
340
|
+
*test.rb
|
341
|
+
add a test of return type is an object wrapped an array
|
342
|
+
*Test.java
|
343
|
+
add a method that returns an object wrapped an array
|
344
|
+
*rjb.c
|
345
|
+
check array-mark in jv2rv for returned object was an array
|
346
|
+
Tue Aug 1 arton
|
347
|
+
*load.c
|
348
|
+
*rjb.c
|
349
|
+
change load pathname of the bridge class.
|
350
|
+
*post-install.rb
|
351
|
+
add for remove previous installed rjb.so.
|
352
|
+
*rjb.rake
|
353
|
+
add for build Gem.
|
354
|
+
*rjb.rb
|
355
|
+
for preparing the pathname constant of the bridge class.
|
356
|
+
*depend
|
357
|
+
chage binary name from rjb.so to rjbcore.so
|
358
|
+
*extconf.rb
|
359
|
+
chage binary name from rjb.so to rjbcore.so
|
360
|
+
|
361
|
+
Mon Jul 31 arton
|
362
|
+
*load.c
|
363
|
+
fix buffer allocation
|
364
|
+
|
365
|
+
Sun Jul 16 (Jun 22) Kuwashima and arton
|
366
|
+
*rjb.c
|
367
|
+
version 0.2.8
|
368
|
+
*MANIFEST
|
369
|
+
*depend
|
370
|
+
*load.c
|
371
|
+
*rjbexception.c
|
372
|
+
change jni.h to jniwrap.h.
|
373
|
+
change the bridge class's header according to JDK 5.0's javah.
|
374
|
+
*jniwrap.h
|
375
|
+
wrap jni.h for Cygin
|
376
|
+
|
377
|
+
Sat Jun 10 14:10:05 2006 arton
|
378
|
+
*rjb.c
|
379
|
+
version 0.2.7
|
380
|
+
support an array of arrays from ruby to java.
|
381
|
+
|
382
|
+
Mon May 8 08:52:12 2006 arton
|
383
|
+
*load.c
|
384
|
+
revision 5
|
385
|
+
support both Intel and PPC Mac.
|
386
|
+
Patched version was contributed by Demetrius Nunes.
|
387
|
+
|
388
|
+
Wed Apr 12 03:57:12 2006 arton
|
389
|
+
*rjb.c
|
390
|
+
version 0.2.6
|
391
|
+
support an array of arrays.
|
392
|
+
*test.rb
|
393
|
+
add an array of arrays test, some tests are contributed by Darren Day.
|
394
|
+
*Test.java
|
395
|
+
add a test method that returns an array of arrays, some tests are
|
396
|
+
contributed by Darren Day.
|
397
|
+
|
398
|
+
Sat Dec 24 18:56:38 2005 arton
|
399
|
+
*rjb.c
|
400
|
+
version 0.2.5
|
401
|
+
release String, Float, Array object after method call.
|
402
|
+
*gctest.rb
|
403
|
+
add for String object gc test
|
404
|
+
|
405
|
+
Mon Sep 19 01:09:30 2005 arton
|
406
|
+
*rjb.c
|
407
|
+
version 0.2.4
|
408
|
+
use null instead of empty string when String argument is nil
|
409
|
+
omit unused local variable from jstring2val
|
410
|
+
*test.rb
|
411
|
+
add null string test (bug since utf-8 support)
|
412
|
+
|
413
|
+
Tue Jun 28 01:57:07 2005 arton
|
414
|
+
*rjb.c
|
415
|
+
version 0.2.3
|
416
|
+
convert result object to imported class if object is an instance of Class
|
417
|
+
call Class#forName if argument count is 1
|
418
|
+
*test.rb
|
419
|
+
add test_importobj contributed by Mr. Kuwashima, thanks.
|
420
|
+
|
421
|
+
Mon Jun 27 20:30:50 2005 arton
|
422
|
+
treat Class.forName as Rjb::import
|
423
|
+
*rjb.c
|
424
|
+
version 0.2.2
|
425
|
+
add method 'forName' into imported Class object
|
426
|
+
if pass imported object to JVM, extract Class object from ruby object
|
427
|
+
*test.rb
|
428
|
+
add above tests
|
429
|
+
|
430
|
+
Sat Jun 25 05:58:36 2005 arton
|
431
|
+
most bugs were reported by Mr. Micael Weller, thanks.
|
432
|
+
*rjb.c
|
433
|
+
version 0.2.1
|
434
|
+
correct derived static method search
|
435
|
+
search class methods then class's instance methods when called by class
|
436
|
+
avoid register non capitalized named constants into constants table
|
437
|
+
correct capitalized named method search
|
438
|
+
*riconv.c
|
439
|
+
never call iconv if $KCODE is nil
|
440
|
+
*load.c
|
441
|
+
using path separator ; for cygwin (by Ryugate)
|
442
|
+
|
443
|
+
Sun Apr 24 05:26:16 2005 arton
|
444
|
+
*rb.c
|
445
|
+
version 0.2.0
|
446
|
+
delete localref if globalref was created.
|
447
|
+
load can take the second argument for jvm
|
448
|
+
*load.c
|
449
|
+
load can take the second argument for jvm
|
450
|
+
|
451
|
+
Mon Jan 17 02:40:21 2005 arton
|
452
|
+
*rjb.c
|
453
|
+
add 'throw' module function.
|
454
|
+
move java exception handling functions into newly created rjbexception.c
|
455
|
+
*rjb.h
|
456
|
+
declations for rjb.c and rjbexception.c
|
457
|
+
*rjbexception.c
|
458
|
+
java exception handling functions, and 'throw' module function.
|
459
|
+
*test.rb
|
460
|
+
adding throw test.
|
461
|
+
|
462
|
+
Wed Jan 12 00:01:08 2005 Kaspar Schiess and arton
|
463
|
+
*rjb.c
|
464
|
+
correct Rjb::load parameter evaluation (classpath).
|
465
|
+
- many thanks to Mr.Schiess.
|
466
|
+
|
467
|
+
Sun Nov 21 02:51:43 2004 Kuwashima and arton
|
468
|
+
*rjb.c
|
469
|
+
move dbcs-utf-8 auto conversion feature into riconv.?
|
470
|
+
remove JNI version argument from Rjb::load. (bug reported by Mr.Tateishi)
|
471
|
+
*load.c
|
472
|
+
correct CLASSPATH setting (bad environment name).(bug reported by Mr.Tateishi)
|
473
|
+
*riconv.c riconv.h (contributed by Mr.Kuwashima)
|
474
|
+
DBCS - utf-8 auto conversion functions.
|
475
|
+
*depend MANIFEST
|
476
|
+
add riconv.?
|
477
|
+
- many tanks to Mr.Kuwashima and Mr.Tateishi.
|
478
|
+
|
479
|
+
Tue Oct 5 23:08:59 2004 Kuwashima and arton
|
480
|
+
*test.rb
|
481
|
+
add kanji conversion test
|
482
|
+
*rjb.c
|
483
|
+
add dbcs(sjis and euc-jp) - utf-8 auto conversion feature.
|
484
|
+
the patch was contributed by Mr.Kuwashima, many thanks.
|
485
|
+
|
486
|
+
Sun Oct 3 18:24:42 2004 arton
|
487
|
+
*load.c
|
488
|
+
JNIEnv* now using local variable instead of global one.
|
489
|
+
Because AWT event use a worker thread, and JNI need thread's owned JNIEnv.
|
490
|
+
*rjb.c
|
491
|
+
JNIEnv* now using local variable instead of global one.
|
492
|
+
Because AWT event use a worker thread, and JNI need thread's owned JNIEnv.
|
493
|
+
This change was suggested by Mr.Kuwashima, he also tested the behavior,
|
494
|
+
and gave me some test codes.
|
495
|
+
and attach_current_thread is from Mr.Kuwashima's patch.
|
496
|
+
Many thanks to Mr.Kuwashima.
|
497
|
+
|
498
|
+
Sat Sep 25 03:25:45 2004 arton
|
499
|
+
*rjb.c
|
500
|
+
implements interface's method argument conversion.
|
501
|
+
*test.rb
|
502
|
+
add Comparable test (interface with method arguments)
|
503
|
+
*Test.java
|
504
|
+
add Comparable test method.
|
505
|
+
|
506
|
+
Wed Sep 22 02:30:15 2004 arton
|
507
|
+
*rjb.c
|
508
|
+
correct constants load, using mid-class.
|
509
|
+
convert null string to nil
|
510
|
+
|
511
|
+
Wed Sep 22 00:05:32 2004 arton
|
512
|
+
*rjb.c
|
513
|
+
correct ruby type checking. If the parameter type is java.lang.String, rjb instance is always accepted.
|
514
|
+
|
515
|
+
Mon Sep 20 22:02:53 2004 arton
|
516
|
+
*rjb.c
|
517
|
+
checking method/constructor signature with class when the argument is rjb's instance.
|
518
|
+
Sun Sep 19 00:54:35 2004 arton
|
519
|
+
*rjb.c
|
520
|
+
convert Java exception to Ruby's StandardError derived class.
|
521
|
+
checking method/constructor signature when invoking if no signatur argument is supplied.
|
522
|
+
adding field accessor.
|
523
|
+
|
524
|
+
Sun Sep 12 21:42:00 2004 arton
|
525
|
+
*rjb.c
|
526
|
+
call exception description when verbose = true.
|
527
|
+
correct recursive import call (for Boolean).
|
528
|
+
corrent method not found message creation.
|
File without changes
|
data/ext/rjb.c
CHANGED
@@ -12,10 +12,10 @@
|
|
12
12
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
13
13
|
* Lesser General Public License for more details.
|
14
14
|
*
|
15
|
-
* $Id: rjb.c
|
15
|
+
* $Id: rjb.c 163 2010-11-22 07:31:27Z arton $
|
16
16
|
*/
|
17
17
|
|
18
|
-
#define RJB_VERSION "1.3.
|
18
|
+
#define RJB_VERSION "1.3.4"
|
19
19
|
|
20
20
|
#include "ruby.h"
|
21
21
|
#include "extconf.h"
|
@@ -75,6 +75,7 @@ static VALUE jarray2rv(JNIEnv* jenv, jvalue val);
|
|
75
75
|
static jarray r2objarray(JNIEnv* jenv, VALUE v, const char* cls);
|
76
76
|
static VALUE jv2rv_withprim(JNIEnv* jenv, jobject o);
|
77
77
|
static J2R get_arrayconv(const char* cname, char* depth);
|
78
|
+
static jarray r2barray(JNIEnv* jenv, VALUE v, const char* cls);
|
78
79
|
|
79
80
|
static VALUE rjb;
|
80
81
|
static VALUE jklass;
|
@@ -748,7 +749,7 @@ static void rv2jstring(JNIEnv* jenv, VALUE val, jvalue* jv, const char* psig, in
|
|
748
749
|
return; /* never delete at this time */
|
749
750
|
}
|
750
751
|
}
|
751
|
-
|
752
|
+
}
|
752
753
|
(*jenv)->DeleteLocalRef(jenv, jv->l);
|
753
754
|
}
|
754
755
|
}
|
@@ -814,7 +815,11 @@ static void rv2jobject(JNIEnv* jenv, VALUE val, jvalue* jv, const char* psig, in
|
|
814
815
|
}
|
815
816
|
break;
|
816
817
|
case T_STRING:
|
817
|
-
|
818
|
+
if (psig && *psig == '[' && *(psig + 1) == 'B') {
|
819
|
+
jv->l = r2barray(jenv, val, NULL);
|
820
|
+
} else {
|
821
|
+
rv2jstring(jenv, val, jv, NULL, 0);
|
822
|
+
}
|
818
823
|
break;
|
819
824
|
case T_FLOAT:
|
820
825
|
arg.d = NUM2DBL(val);
|
@@ -1115,6 +1120,22 @@ static void rv2jarray(JNIEnv* jenv, VALUE val, jvalue* jv, const char* psig, int
|
|
1115
1120
|
}
|
1116
1121
|
if (release)
|
1117
1122
|
{
|
1123
|
+
if (TYPE(val) == T_STRING && *(psig + 1) == 'B')
|
1124
|
+
{
|
1125
|
+
// copy array's contents into arg string
|
1126
|
+
jsize len = (*jenv)->GetArrayLength(jenv, jv->l);
|
1127
|
+
jbyte* p = (*jenv)->GetByteArrayElements(jenv, jv->l, NULL);
|
1128
|
+
if (len <= RSTRING_LEN(val))
|
1129
|
+
{
|
1130
|
+
memcpy(StringValuePtr(val), p, len);
|
1131
|
+
}
|
1132
|
+
else
|
1133
|
+
{
|
1134
|
+
VALUE src = rb_str_new(p, len);
|
1135
|
+
rb_str_set_len(val, 0);
|
1136
|
+
rb_str_append(val, src);
|
1137
|
+
}
|
1138
|
+
}
|
1118
1139
|
(*jenv)->DeleteLocalRef(jenv, jv->l);
|
1119
1140
|
}
|
1120
1141
|
else
|
@@ -2099,7 +2120,7 @@ static int check_rtype(JNIEnv* jenv, VALUE v, char* p)
|
|
2099
2120
|
case T_FLOAT:
|
2100
2121
|
return strchr("DF", *p) != NULL;
|
2101
2122
|
case T_STRING:
|
2102
|
-
|
2123
|
+
return pcls && !strcmp("java.lang.String", pcls) || *p == '[' && *(p + 1) == 'B';
|
2103
2124
|
case T_TRUE:
|
2104
2125
|
case T_FALSE:
|
2105
2126
|
return *p == 'Z';
|
@@ -3057,11 +3078,13 @@ static VALUE rjb_class_forname(int argc, VALUE* argv, VALUE self)
|
|
3057
3078
|
*/
|
3058
3079
|
void Init_rjbcore()
|
3059
3080
|
{
|
3060
|
-
#if
|
3081
|
+
#if RJB_RUBY_VERSION_CODE < 190
|
3082
|
+
#if defined(RUBINIUS)
|
3061
3083
|
rb_require("iconv");
|
3062
|
-
#else
|
3084
|
+
#else
|
3063
3085
|
rb_protect((VALUE(*)(VALUE))rb_require, (VALUE)"iconv", NULL);
|
3064
|
-
#endif
|
3086
|
+
#endif
|
3087
|
+
#endif
|
3065
3088
|
rjb_loaded_classes = rb_hash_new();
|
3066
3089
|
#ifndef RUBINIUS
|
3067
3090
|
OBJ_FREEZE(rjb_loaded_classes);
|
Binary file
|
Binary file
|
data/test/test.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/local/env ruby -Ku
|
2
2
|
# encoding: utf-8
|
3
|
-
# $Id: test.rb
|
3
|
+
# $Id: test.rb 161 2010-11-22 07:18:00Z arton $
|
4
4
|
|
5
5
|
begin
|
6
6
|
require 'rjb'
|
@@ -750,5 +750,15 @@ class TestRjb < Test::Unit::TestCase
|
|
750
750
|
jt = import('jp.co.infoseek.hp.arton.rjb.JarTest')
|
751
751
|
assert_equal 'abcd', jt.new.add('ab', 'cd')
|
752
752
|
end
|
753
|
+
def test_bothdirection_buffer
|
754
|
+
org = "abcdefghijklmn"
|
755
|
+
baip = import('java.io.ByteArrayInputStream')
|
756
|
+
ba = baip.new(org)
|
757
|
+
buff = "\0" * org.size
|
758
|
+
assert_equal org.size, ba.read(buff)
|
759
|
+
assert_equal -1, ba.read(buff)
|
760
|
+
ba.close
|
761
|
+
assert_equal org, buff
|
762
|
+
end
|
753
763
|
end
|
754
764
|
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rjb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 19
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 1
|
7
8
|
- 3
|
8
|
-
-
|
9
|
-
version: 1.3.
|
9
|
+
- 4
|
10
|
+
version: 1.3.4
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- arton
|
@@ -14,7 +15,7 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-11-
|
18
|
+
date: 2010-11-22 00:00:00 +09:00
|
18
19
|
default_executable:
|
19
20
|
dependencies: []
|
20
21
|
|
@@ -36,7 +37,6 @@ files:
|
|
36
37
|
- ext/rjb.c
|
37
38
|
- ext/jp_co_infoseek_hp_arton_rjb_RBridge.h
|
38
39
|
- ext/riconv.h
|
39
|
-
- ext/extconf.h
|
40
40
|
- ext/jniwrap.h
|
41
41
|
- ext/rjb.h
|
42
42
|
- ext/depend
|
@@ -48,9 +48,11 @@ files:
|
|
48
48
|
- test/exttest.rb
|
49
49
|
- test/test_osxjvm.rb
|
50
50
|
- test/gctest.rb
|
51
|
+
- test/jp/co/infoseek/hp/arton/rjb/Base.class
|
51
52
|
- test/jp/co/infoseek/hp/arton/rjb/IBase.class
|
52
53
|
- test/jp/co/infoseek/hp/arton/rjb/Test.class
|
53
54
|
- test/jp/co/infoseek/hp/arton/rjb/Test$TestTypes.class
|
55
|
+
- test/jp/co/infoseek/hp/arton/rjb/ExtBase.class
|
54
56
|
- test/rjbtest.jar
|
55
57
|
- test/jartest.jar
|
56
58
|
- COPYING
|
@@ -72,6 +74,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
72
74
|
requirements:
|
73
75
|
- - ">="
|
74
76
|
- !ruby/object:Gem::Version
|
77
|
+
hash: 51
|
75
78
|
segments:
|
76
79
|
- 1
|
77
80
|
- 8
|
@@ -82,6 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
85
|
requirements:
|
83
86
|
- - ">="
|
84
87
|
- !ruby/object:Gem::Version
|
88
|
+
hash: 3
|
85
89
|
segments:
|
86
90
|
- 0
|
87
91
|
version: "0"
|