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