cheri 0.0.9 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (C) 2007,2008 William N Dortch <bill.dortch@gmail.com>
2
+ # Copyright (C) 2007,2008,2009 William N Dortch <bill.dortch@gmail.com>
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining
5
5
  # a copy of this software and associated documentation files (the
@@ -22,6 +22,21 @@
22
22
  #++
23
23
  #
24
24
 
25
+ # WORKAROUND for JRUBY-3476 (no java_class for obj with singleton class)
26
+ # fixes reported Cheri "bug" #21960
27
+
28
+ x = java.lang.Object.new
29
+ # force singleton class
30
+ def x.foo; end
31
+ # redefine java_class if it doesn't work
32
+ class java::lang::Object
33
+ def java_class
34
+ self.class.java_class
35
+ end
36
+ end unless x.java_class
37
+
38
+ # END WORKAROUND
39
+
25
40
  module Cheri
26
41
  module JRuby
27
42
  #:stopdoc:
@@ -44,7 +59,7 @@ class << self
44
59
  proxy ? JU.get_proxy_class(name) : @unproxied[name] ||= JC.for_name(name)
45
60
  end
46
61
  def runtime #:nodoc:
47
- @runtime ||= ::Java.java_to_ruby(get_class(RObj,false).java_method('getRuntime').invoke(::Java.ruby_to_java(self)))
62
+ @runtime ||= ::JRuby.runtime
48
63
  end
49
64
  def start_time #:nodoc:
50
65
  runtime.start_time
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: cheri
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.9
7
- date: 2008-01-02 00:00:00 -08:00
6
+ version: 0.5.0
7
+ date: 2009-03-16 00:00:00 -07:00
8
8
  summary: Cheri Builder Platform
9
9
  require_paths:
10
10
  - lib
@@ -33,6 +33,9 @@ files:
33
33
  - README
34
34
  - MIT-LICENSE
35
35
  - examples/chat.rb
36
+ - examples/grid_bag_layout_demo.rb
37
+ - examples/grid_table_align.rb
38
+ - examples/grid_table_columns.rb
36
39
  - examples/hello_world_1.rb
37
40
  - examples/table_1.rb
38
41
  - lib/cheri
@@ -60,6 +63,7 @@ files:
60
63
  - lib/cheri/builder/swing
61
64
  - lib/cheri/builder/swing/connecter.rb
62
65
  - lib/cheri/builder/swing/constants.rb
66
+ - lib/cheri/builder/swing/main-old.rb
63
67
  - lib/cheri/builder/swing/main.rb
64
68
  - lib/cheri/builder/swing/types.rb
65
69
  - lib/cheri/builder/xml
@@ -113,6 +117,7 @@ files:
113
117
  - lib/cheri/jruby
114
118
  - lib/cheri/jruby/explorer
115
119
  - lib/cheri/jruby/explorer/common.rb
120
+ - lib/cheri/jruby/explorer/dialogs-old.rb
116
121
  - lib/cheri/jruby/explorer/dialogs.rb
117
122
  - lib/cheri/jruby/explorer/explorer.rb
118
123
  - lib/cheri/jruby/explorer/splash.rb