rjb 1.3.0 → 1.3.1

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