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