r2corba 1.4.1-x64-mingw32 → 1.5.1-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES +15 -1
- data/THANKS +3 -1
- data/bin/r2corba +1 -1
- data/bin/ridlc +1 -1
- data/bin/rins +1 -1
- data/lib/corba/cbase/ORB.rb +8 -2
- data/lib/corba/common/ORB.rb +1 -1
- data/lib/corba/common/Object.rb +1 -1
- data/lib/corba/common/version.rb +1 -1
- data/lib/corba/jbase/ORB.rb +14 -1
- data/lib/corba/jbase/Object.rb +12 -11
- data/lib/corba/jbase/Servant.rb +3 -2
- data/lib/corba/jbase/require.rb +7 -4
- data/lib/ridlbe/ruby/config.rb +6 -6
- data/lib/ridlbe/ruby/orb.pidlc +0 -0
- data/mkrf_conf_bingem.rb +52 -2
- data/rakelib/bin.rb +3 -3
- data/rakelib/config.rb +96 -2
- data/rakelib/ext.rake +1 -1
- data/rakelib/ext.rb +10 -2
- data/rakelib/ext_r2tao.rb +6 -3
- data/rakelib/gem.rake +48 -24
- data/rakelib/gem.rb +6 -6
- data/test/BiDirectional/server.ior +1 -1
- data/test/CORBA_Services/Naming/BindingIterator/ins.ior +1 -1
- data/test/CORBA_Services/Naming/Corbaname/ins.ior +1 -1
- data/test/CORBA_Services/Naming/Simple/ins.ior +1 -1
- data/test/DII/server.ior +1 -1
- data/test/DSI/server.ior +1 -1
- data/test/Exceptions/server.ior +1 -1
- data/test/IDL_Test/server.ior +1 -1
- data/test/IORMap/server.ior +1 -1
- data/test/IORTable/server.ior +1 -1
- data/test/Implicit_Conversion/server.ior +1 -1
- data/test/Multi_Threading/Multiple_ORB/server0.ior +1 -1
- data/test/Multi_Threading/Multiple_ORB/server1.ior +1 -1
- data/test/Multi_Threading/Simple/Test.idl +1 -1
- data/test/Multi_Threading/Simple/client.rb +17 -12
- data/test/Multi_Threading/Simple/server.ior +1 -1
- data/test/Multi_Threading/Simple/server.rb +2 -2
- data/test/Multi_Threading/Threads/server.ior +1 -1
- data/test/Multi_Threading/Threads/server.rb +1 -1
- data/test/Multi_Threading/Threads/watchdog.ior +1 -1
- data/test/Multiple_Servant_Interfaces/server.ior +1 -1
- data/test/OBV/AbstractInterface/server.ior +1 -1
- data/test/OBV/Custom/server.ior +1 -1
- data/test/OBV/Simple/server.ior +1 -1
- data/test/OBV/Simple_Event/server.ior +1 -1
- data/test/OBV/Supports/server.ior +1 -1
- data/test/OBV/Tree/server.ior +1 -1
- data/test/OBV/Truncatable/server.ior +1 -1
- data/test/OBV/ValueBox/server.ior +1 -1
- data/test/Object/client.rb +30 -21
- data/test/Object/server.ior +1 -1
- data/test/Param_Test/server.ior +1 -1
- data/test/Performance/Simple/server.ior +1 -1
- data/test/Timeout/server.ior +1 -1
- metadata +108 -108
data/rakelib/ext.rake
CHANGED
@@ -206,7 +206,7 @@ else # !JRUBY_VERSION
|
|
206
206
|
cur_dir = Dir.getwd
|
207
207
|
Dir.chdir File.expand_path(get_config('aceroot'))
|
208
208
|
begin
|
209
|
-
if R2CORBA::Config.is_linux && R2CORBA::Config.cpu_cores > 2
|
209
|
+
if R2CORBA::Config.is_linux && R2CORBA::Config::linux_distro != :ubuntu && R2CORBA::Config.cpu_cores > 2
|
210
210
|
sh("#{get_config('makeprog')} -j#{R2CORBA::Config.cpu_cores - 2} #{get_config('with-debug') ? ' debug=1' : ''}")
|
211
211
|
else
|
212
212
|
sh("#{get_config('makeprog')}#{get_config('with-debug') ? ' debug=1' : ''}")
|
data/rakelib/ext.rb
CHANGED
@@ -56,7 +56,7 @@ module R2CORBA
|
|
56
56
|
if is_win32
|
57
57
|
def self.sys_dlls
|
58
58
|
sysdlls = []
|
59
|
-
except_dll = R2CORBA::Config.is_win64 ? '
|
59
|
+
except_dll = R2CORBA::Config.is_win64 ? 'libgcc_s_seh-1.dll' : 'libgcc_s_dw2-1.dll'
|
60
60
|
ENV['PATH'].split(';').each do |p|
|
61
61
|
if File.exists?(File.join(p, except_dll)) && File.exists?(File.join(p, 'libstdc++-6.dll'))
|
62
62
|
sysdlls << File.join(p, except_dll)
|
@@ -94,8 +94,16 @@ module R2CORBA
|
|
94
94
|
'tiger'
|
95
95
|
when 5
|
96
96
|
'leopard'
|
97
|
-
when 6
|
97
|
+
when 6
|
98
98
|
'snowleopard'
|
99
|
+
when 7
|
100
|
+
'lion'
|
101
|
+
when 8
|
102
|
+
'mountainlion'
|
103
|
+
when 9
|
104
|
+
'mavericks'
|
105
|
+
when 10
|
106
|
+
'yosemite'
|
99
107
|
end
|
100
108
|
end
|
101
109
|
platform_error unless @@osx_name
|
data/rakelib/ext_r2tao.rb
CHANGED
@@ -182,7 +182,7 @@ THE_END__
|
|
182
182
|
def self.get_latest_ace_version
|
183
183
|
print 'Latest ACE release is '
|
184
184
|
_version = nil
|
185
|
-
open('https://
|
185
|
+
open('https://raw.githubusercontent.com/DOCGroup/ATCD/master/ACE/ace/Version.h') do |f|
|
186
186
|
f.each_line do |ln|
|
187
187
|
if /define\s+ACE_VERSION\s+\"(.*)\"/ =~ ln
|
188
188
|
_version = $1
|
@@ -196,8 +196,9 @@ THE_END__
|
|
196
196
|
def self.download_tao_source(version, targetdir)
|
197
197
|
print(_msg = "Downloading ACE+TAO-src-#{version}.tar.gz ")
|
198
198
|
_url = "http://download.dre.vanderbilt.edu/previous_versions/ACE+TAO-src-#{version}.tar.gz"
|
199
|
+
_fnm = File.join(targetdir, "ACE+TAO-src-#{version}.tar.gz")
|
199
200
|
Net::HTTP.start("download.dre.vanderbilt.edu") do |http|
|
200
|
-
_fout = File.open(
|
201
|
+
_fout = File.open(_fnm, "wb")
|
201
202
|
begin
|
202
203
|
http.request_get("/previous_versions/ACE+TAO-src-#{version}.tar.gz") do |resp|
|
203
204
|
_sndlen = resp.content_length
|
@@ -217,6 +218,8 @@ THE_END__
|
|
217
218
|
puts
|
218
219
|
end
|
219
220
|
end
|
221
|
+
FileUtils::Verbose.sh("rm -rf #{File.join(targetdir, 'ACE_wrappers')} && tar -xzf #{_fnm} -C #{targetdir}")
|
222
|
+
FileUtils::Verbose.sh("rm -f #{_fnm} && tar --format=gnu -czf #{_fnm} -C src ACE_wrappers")
|
220
223
|
end
|
221
224
|
|
222
225
|
def self.ext_shlibs
|
@@ -229,4 +232,4 @@ THE_END__
|
|
229
232
|
|
230
233
|
end
|
231
234
|
|
232
|
-
end
|
235
|
+
end
|
data/rakelib/gem.rake
CHANGED
@@ -40,16 +40,18 @@ namespace :r2corba do
|
|
40
40
|
end
|
41
41
|
|
42
42
|
task :binbuild => ['r2corba:bin:build', 'r2corba:build_idl'] do
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
43
|
+
unless defined?(JRUBY_VERSION)
|
44
|
+
if R2CORBA::Config.is_linux
|
45
|
+
# create unversioned ACE/TAO lib symlinks
|
46
|
+
R2CORBA::Ext.ace_shlibs('.so', 'ext').each do |acelib|
|
47
|
+
acelib_ver = File.expand_path(Dir[acelib+'.*'].first)
|
48
|
+
ln_s(acelib_ver, acelib)
|
49
|
+
end
|
50
|
+
end
|
51
|
+
unless R2CORBA::Config.is_win32
|
52
|
+
# patch RPATH setting of shared libs
|
53
|
+
R2CORBA::Gem.patch_extlib_rpath
|
48
54
|
end
|
49
|
-
end
|
50
|
-
unless defined?(JRUBY_VERSION) || R2CORBA::Config.is_win32
|
51
|
-
# patch RPATH setting of shared libs
|
52
|
-
R2CORBA::Gem.patch_extlib_rpath
|
53
55
|
end
|
54
56
|
end
|
55
57
|
|
@@ -74,7 +76,7 @@ namespace :r2corba do
|
|
74
76
|
gem.extensions = ['mkrf_conf_taogem.rb']
|
75
77
|
gem.require_paths = %w{lib}
|
76
78
|
gem.executables = []
|
77
|
-
gem.required_ruby_version = '>= 1.
|
79
|
+
gem.required_ruby_version = '>= 1.9.3'
|
78
80
|
gem.licenses = ['ACE']
|
79
81
|
end
|
80
82
|
R2CORBA::Gem.build_gem(gemspec)
|
@@ -95,11 +97,11 @@ t_ = file File.join('pkg', "#{R2CORBA::Gem.gem_name('r2corba', R2CORBA::R2CORBA_
|
|
95
97
|
gem.extensions = ['mkrf_conf_srcgem.rb']
|
96
98
|
gem.require_paths = %w{lib}
|
97
99
|
gem.executables = %w{ridlc rins r2corba}
|
98
|
-
gem.required_ruby_version = '>= 1.
|
100
|
+
gem.required_ruby_version = '>= 1.9.3'
|
99
101
|
gem.licenses = ['R2CORBA', 'ACE', 'GPL']
|
100
102
|
gem.require_paths << 'ext'
|
101
|
-
gem.add_dependency 'ridl', '
|
102
|
-
gem.add_dependency 'rake', '
|
103
|
+
gem.add_dependency 'ridl', '~> 2.5'
|
104
|
+
gem.add_dependency 'rake', '~> 10.0'
|
103
105
|
gem.rdoc_options << '--exclude=\\.dll' << '--exclude=\\.so' << '--exclude=\\.pidlc'
|
104
106
|
end
|
105
107
|
R2CORBA::Gem.build_gem(gemspec)
|
@@ -131,16 +133,12 @@ t_ = file File.join('pkg', "#{R2CORBA::Gem.gem_name('r2corba', R2CORBA::R2CORBA_
|
|
131
133
|
gem.require_paths = %w{ext}
|
132
134
|
gem.executables = []
|
133
135
|
if R2CORBA::Config.rb_ver_major < 2
|
134
|
-
|
135
|
-
gem.required_ruby_version = '>= 1.9.1'
|
136
|
-
else
|
137
|
-
gem.required_ruby_version = '>= 1.8.6'
|
138
|
-
end
|
136
|
+
gem.required_ruby_version = '>= 1.9.3'
|
139
137
|
else
|
140
138
|
gem.required_ruby_version = '>= 2.0.0'
|
141
139
|
end
|
142
140
|
gem.licenses = ['R2CORBA', 'ACE']
|
143
|
-
gem.rdoc_options << '--exclude=\\.dll' << '--exclude=\\.so'
|
141
|
+
gem.rdoc_options << '--exclude=\\.dll' << '--exclude=\\.so'
|
144
142
|
end
|
145
143
|
R2CORBA::Gem.build_gem(gemspec)
|
146
144
|
ensure
|
@@ -179,17 +177,17 @@ t_ = file File.join('pkg', "#{R2CORBA::Gem.gem_name('r2corba', R2CORBA::R2CORBA_
|
|
179
177
|
gem.extensions = ['mkrf_conf_bingem.rb']
|
180
178
|
if defined?(JRUBY_VERSION)
|
181
179
|
gem.require_paths << 'jacorb/lib'
|
182
|
-
gem.required_ruby_version = '>= 1.
|
180
|
+
gem.required_ruby_version = '>= 1.7.0'
|
183
181
|
gem.licenses = ['R2CORBA', 'JacORB']
|
184
182
|
else
|
185
183
|
gem.files << File.join('ext', '.keep') unless ENV['FULL_BINGEM'] # to force installation of ext folder if libs are left out
|
186
|
-
gem.required_ruby_version = '>= 1.
|
184
|
+
gem.required_ruby_version = '>= 1.9.3'
|
187
185
|
gem.licenses = ['R2CORBA', 'ACE', 'GPL']
|
188
186
|
gem.require_paths << 'ext'
|
189
187
|
end
|
190
|
-
gem.add_dependency 'ridl', '
|
191
|
-
gem.add_dependency 'rake', '
|
192
|
-
gem.rdoc_options << '--exclude=\\.dll' << '--exclude=\\.so'
|
188
|
+
gem.add_dependency 'ridl', '~> 2.5'
|
189
|
+
gem.add_dependency 'rake', '~> 10.0'
|
190
|
+
gem.rdoc_options << '--exclude=\\.dll' << '--exclude=\\.so' << '--exclude=\\.pidlc'
|
193
191
|
end
|
194
192
|
R2CORBA::Gem.build_gem(gemspec)
|
195
193
|
ensure
|
@@ -202,6 +200,32 @@ t_ = file File.join('pkg', "#{R2CORBA::Gem.gem_name('r2corba', R2CORBA::R2CORBA_
|
|
202
200
|
end
|
203
201
|
t_.enhance ['mkrf_conf_bingem.rb']
|
204
202
|
|
203
|
+
unless defined?(JRUBY_VERSION) || !R2CORBA::Config.is_win32
|
204
|
+
# Devkit faker Gem for binary Windows gems
|
205
|
+
t_devkit = file File.join('pkg', "#{R2CORBA::Gem.gem_name('r2corba_devkit', '1.0.0', :devkit)}.gem") => 'lib/rubygems_plugin.rb' do
|
206
|
+
# create gemspec
|
207
|
+
gemspec = R2CORBA::Gem.define_spec('r2corba_devkit', '1.0.0', :devkit) do |gem|
|
208
|
+
gem.summary = %Q{R2CORBA Devkit faker for RubyInstaller Rubies}
|
209
|
+
gem.description = %Q{Fake Devkit loader to satisfy stupid RubyInstaller pre-install hook. }
|
210
|
+
gem.email = 'mcorino@remedy.nl'
|
211
|
+
gem.homepage = "https://osportal.remedy.nl/projects/r2corba"
|
212
|
+
gem.authors = ['Martin Corino']
|
213
|
+
gem.files = 'lib/rubygems_plugin.rb'
|
214
|
+
gem.require_paths = %w{lib}
|
215
|
+
gem.executables = []
|
216
|
+
gem.extensions = []
|
217
|
+
gem.required_ruby_version = '>= 1.9.3'
|
218
|
+
gem.licenses = ['R2CORBA']
|
219
|
+
end
|
220
|
+
R2CORBA::Gem.build_gem(gemspec)
|
221
|
+
end
|
222
|
+
namespace :r2corba do
|
223
|
+
namespace :gem do
|
224
|
+
task :devkit => t_devkit.name
|
225
|
+
end
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
205
229
|
desc 'Build R2CORBA gem'
|
206
230
|
if defined?(JRUBY_VERSION)
|
207
231
|
task :gem => 'r2corba:gem:bingem'
|
data/rakelib/gem.rb
CHANGED
@@ -12,10 +12,10 @@
|
|
12
12
|
#--------------------------------------------------------------------
|
13
13
|
|
14
14
|
require 'rubygems'
|
15
|
+
require 'rubygems/package'
|
15
16
|
begin
|
16
17
|
require 'rubygems/builder'
|
17
18
|
rescue LoadError
|
18
|
-
require 'rubygems/package'
|
19
19
|
end
|
20
20
|
|
21
21
|
require File.join(File.dirname(__FILE__), 'config.rb')
|
@@ -97,7 +97,7 @@ module R2CORBA
|
|
97
97
|
name = "#{name}#{R2CORBA::Config.rb_ver_major}#{R2CORBA::Config.rb_ver_minor}" if (gemtype == :extbin || (gemtype == :bin && ENV['FULL_BINGEM'])) && !defined?(JRUBY_VERSION)
|
98
98
|
gemspec = ::Gem::Specification.new(name,version.dup)
|
99
99
|
if gemtype == :bin || gemtype == :extbin
|
100
|
-
gemspec.platform = ::Gem::Platform::CURRENT
|
100
|
+
gemspec.platform = defined?(JRUBY_VERSION) ? ::Gem::Platform.new('universal-java') : ::Gem::Platform::CURRENT
|
101
101
|
end
|
102
102
|
gemspec.required_rubygems_version = ::Gem::Requirement.new(">= 0") if gemspec.respond_to? :required_rubygems_version=
|
103
103
|
block.call(gemspec) if block_given?
|
@@ -109,16 +109,16 @@ module R2CORBA
|
|
109
109
|
name = "#{name}#{R2CORBA::Config.rb_ver_major}#{R2CORBA::Config.rb_ver_minor}" if (gemtype == :extbin || (gemtype == :bin && ENV['FULL_BINGEM'])) && !defined?(JRUBY_VERSION)
|
110
110
|
gemspec = ::Gem::Specification.new(name,version.dup)
|
111
111
|
if gemtype == :bin || gemtype == :extbin
|
112
|
-
gemspec.platform = ::Gem::Platform::CURRENT
|
112
|
+
gemspec.platform = defined?(JRUBY_VERSION) ? ::Gem::Platform.new('universal-java') : ::Gem::Platform::CURRENT
|
113
113
|
end
|
114
114
|
gemspec.full_name
|
115
115
|
end
|
116
116
|
|
117
117
|
def self.build_gem(gemspec)
|
118
|
-
if defined?(::Gem::
|
119
|
-
gem_file_name = ::Gem::Builder.new(gemspec).build
|
120
|
-
else
|
118
|
+
if defined?(::Gem::Package) && ::Gem::Package.respond_to?(:build)
|
121
119
|
gem_file_name = ::Gem::Package.build(gemspec)
|
120
|
+
else
|
121
|
+
gem_file_name = ::Gem::Builder.new(gemspec).build
|
122
122
|
end
|
123
123
|
|
124
124
|
FileUtils.mkdir_p('pkg')
|
@@ -1 +1 @@
|
|
1
|
-
IOR:
|
1
|
+
IOR:010000001600000049444c3a53696d706c655f5365727665723a312e30000000010000000000000074000000010102000d0000003137322e31362e362e32333400002bec2300000014010f004e5354c293d354c07e070001000000010000000000000001000000010000000002000000000000000800000001010000004f41540100000018000000010100000100010001000000010001050901010000000000
|
@@ -1 +1 @@
|
|
1
|
-
IOR:
|
1
|
+
IOR:010000002b00000049444c3a6f6d672e6f72672f436f734e616d696e672f4e616d696e67436f6e746578744578743a312e30000001000000000000006c000000010102000d0000003137322e31362e362e323334000032ec1b00000014010f00525354c393d354d8d30d000000000001000000010000000002000000000000000800000001ff406b004f4154010000001800000001ff406b0100010001000000010001050901010000000000
|
@@ -1 +1 @@
|
|
1
|
-
IOR:
|
1
|
+
IOR:010000002b00000049444c3a6f6d672e6f72672f436f734e616d696e672f4e616d696e67436f6e746578744578743a312e30000001000000000000006c000000010102000d0000003137322e31362e362e323334000029091b00000014010f00525354c693d35460760b000000000001000000010000000002000000000000000800000001ff406b004f4154010000001800000001ff406b0100010001000000010001050901010000000000
|
@@ -1 +1 @@
|
|
1
|
-
IOR:
|
1
|
+
IOR:010000002b00000049444c3a6f6d672e6f72672f436f734e616d696e672f4e616d696e67436f6e746578744578743a312e30000001000000000000006c000000010102000d0000003137322e31362e362e323334000049ec1b00000014010f00525354c893d35448eb0d000000000001000000010000000002000000000000000800000001ff406b004f4154010000001800000001ff406b0100010001000000010001050901010000000000
|
data/test/DII/server.ior
CHANGED
@@ -1 +1 @@
|
|
1
|
-
IOR:
|
1
|
+
IOR:010000001300000049444c3a546573742f48656c6c6f3a312e30000001000000000000006c000000010102000d0000003137322e31362e362e32333400005aec1b00000014010f00525354cc93d354c0d70d000000000001000000010000000002000000000000000800000001010000004f41540100000018000000010100000100010001000000010001050901010000000000
|
data/test/DSI/server.ior
CHANGED
@@ -1 +1 @@
|
|
1
|
-
IOR:
|
1
|
+
IOR:010000001300000049444c3a546573742f48656c6c6f3a312e30000001000000000000006c000000010102000d0000003137322e31362e362e323334000060ec1b00000014010f00525354ce93d354681000000000000001000000010000000002000000000000000800000001010000004f41540100000018000000010100000100010001000000010001050901010000000000
|
data/test/Exceptions/server.ior
CHANGED
@@ -1 +1 @@
|
|
1
|
-
IOR:
|
1
|
+
IOR:010000001300000049444c3a546573742f48656c6c6f3a312e30000001000000000000006c000000010102000d0000003137322e31362e362e323334000066ec1b00000014010f00525354cf93d35410ef00000000000001000000010000000002000000000000000800000001010000004f41540100000018000000010100000100010001000000010001050901010000000000
|
data/test/IDL_Test/server.ior
CHANGED
@@ -1 +1 @@
|
|
1
|
-
IOR:
|
1
|
+
IOR:010000001a00000049444c3a52656d6564792f546573742f48656c6c6f3a312e3000000001000000000000006c000000010102020d0000003137322e31362e362e323334000072ec1b00000014010f00525354d193d354380603000000000001000000010000000002000000000000000800000001010000004f41540100000018000000010100000100010001000000010001050901010000000000
|
data/test/IORMap/server.ior
CHANGED
@@ -1 +1 @@
|
|
1
|
-
IOR:
|
1
|
+
IOR:010000001300000049444c3a546573742f48656c6c6f3a312e300000010000000000000068000000010102000a0000003132372e302e302e31000f271b00000014010f00525354d293d354987902000100000001000000020000000002000000000000000800000001010000004f41540100000018000000010100000100010001000000010001050901010000000000
|
data/test/IORTable/server.ior
CHANGED
@@ -1 +1 @@
|
|
1
|
-
IOR:
|
1
|
+
IOR:010000001300000049444c3a546573742f48656c6c6f3a312e300000010000000000000068000000010102000a0000003132372e302e302e31000f271b00000014010f00525354d393d354a05401000100000001000000020000000002000000000000000800000001010000004f41540100000018000000010100000100010001000000010001050901010000000000
|
@@ -1 +1 @@
|
|
1
|
-
IOR:
|
1
|
+
IOR:010000001300000049444c3a546573742f48656c6c6f3a312e30000001000000000000006c000000010102000d0000003137322e31362e362e323334000084ec1b00000014010f00525354d493d354406a00000000000001000000010000000002000000000000000800000001010000004f41540100000018000000010100000100010001000000010001050901010000000000
|
@@ -1 +1 @@
|
|
1
|
-
IOR:
|
1
|
+
IOR:010000001300000049444c3a546573742f48656c6c6f3a312e30000001000000000000006c000000010102000d0000003137322e31362e362e32333400008cec1b00000014010f00525354d593d354208d0200000000000100000001000000000200000000000000080000000103406b004f415401000000180000000103406b0100010001000000010001050901010000000000
|
@@ -1 +1 @@
|
|
1
|
-
IOR:
|
1
|
+
IOR:010000001300000049444c3a546573742f48656c6c6f3a312e30000001000000000000006c000000010102000d0000003137322e31362e362e32333400008dec1b00000014010f00525354d593d35408910200000000000100000001000000000200000000000000080000000103406b004f415401000000180000000103406b0100010001000000010001050901010000000000
|
@@ -59,20 +59,25 @@ begin
|
|
59
59
|
|
60
60
|
hello_obj = Test::Hello._narrow(obj)
|
61
61
|
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
62
|
+
unless defined?(JRUBY_VERSION) && CORBA::Native::Jacorb::MAJOR_VERSION == 3 &&
|
63
|
+
([4,5].include? CORBA::Native::Jacorb::MINOR_VERSION)
|
64
|
+
## JacORB 3.4 introduced a bug which prevents this test from succeeding
|
65
|
+
## JacORB 3.6 will be released with a fix for this
|
66
|
+
clt_trds = (0..1).collect do |i|
|
67
|
+
Thread.new(i) do |i_|
|
68
|
+
10.times do
|
69
|
+
the_string = hello_obj.get_string(i_)
|
70
|
+
|
71
|
+
puts "[thread \##{i_}] string returned <#{the_string}>"
|
72
|
+
|
73
|
+
Thread.pass
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
clt_trds.each { |t| t.join }
|
72
79
|
end
|
73
80
|
|
74
|
-
clt_trds.each { |t| t.join }
|
75
|
-
|
76
81
|
hello_obj.shutdown()
|
77
82
|
|
78
83
|
assert_not "ERROR: Object is reported nil!", CORBA::is_nil(hello_obj)
|
@@ -1 +1 @@
|
|
1
|
-
IOR:
|
1
|
+
IOR:010000001300000049444c3a546573742f48656c6c6f3a312e30000001000000000000006c0000000101026b0d0000003137322e31362e362e323334000094ec1b00000014010f00525354d693d354087307000000000001000000010000000002000000000000000800000001010000004f41540100000018000000010100000100010001000000010001050901010000000000
|
@@ -1 +1 @@
|
|
1
|
-
IOR:
|
1
|
+
IOR:010000001300000049444c3a546573742f48656c6c6f3a312e30000001000000000000006c000000010102000d0000003137322e31362e362e32333400009eec1b00000014010f00525354d893d354d0c90100000000000100000001000000000200000000000000080000000103406b004f415401000000180000000103406b0100010001000000010001050901010000000000
|
@@ -1 +1 @@
|
|
1
|
-
IOR:
|
1
|
+
IOR:010000001600000049444c3a546573742f5761746368646f673a312e3000000001000000000000006c000000010102000d0000003137322e31362e362e32333400009bec1b00000014010f00525354d793d354180b0a000000000001000000010000000002000000000000000800000001010000004f41540100000018000000010100000100010001000000010001050901010000000000
|
@@ -1 +1 @@
|
|
1
|
-
IOR:
|
1
|
+
IOR:010000001300000049444c3a546573742f48656c6c6f3a312e30000001000000000000006c000000010102000d0000003137322e31362e362e3233340000a5ec1b00000014010f00525354db93d35430ef0d000000000001000000010000000002000000000000000800000001010000004f41540100000018000000010100000100010001000000010001050901010000000000
|
@@ -1 +1 @@
|
|
1
|
-
IOR:
|
1
|
+
IOR:010000000f00000049444c3a7061737365723a312e30000001000000000000006c000000010102020d0000003137322e31362e362e3233340000aeec1b00000014010f00525354e293d354f0f307000000000001000000010000000002000000000000000800000001010000004f41540100000018000000010100000100010001000000010001050901010000000000
|
data/test/OBV/Custom/server.ior
CHANGED
@@ -1 +1 @@
|
|
1
|
-
IOR:
|
1
|
+
IOR:010000001300000049444c3a436865636b706f696e743a312e30000001000000000000006c000000010102000d0000003137322e31362e362e3233340000b4ec1b00000014010f00525354e393d354701a0c000000000001000000010000000002000000000000000800000001010000004f41540100000018000000010100000100010001000000010001050901010000000000
|
data/test/OBV/Simple/server.ior
CHANGED
@@ -1 +1 @@
|
|
1
|
-
IOR:
|
1
|
+
IOR:010000001300000049444c3a436865636b706f696e743a312e30000001000000000000006c000000010102010d0000003137322e31362e362e3233340000baec1b00000014010f00525354e493d354d8560d000000000001000000010000000002000000000000000800000001010000004f41540100000018000000010100000100010001000000010001050901010000000000
|
@@ -1 +1 @@
|
|
1
|
-
IOR:
|
1
|
+
IOR:010000001300000049444c3a436865636b706f696e743a312e30000001000000000000006c000000010102000d0000003137322e31362e362e3233340000c0ec1b00000014010f00525354e593d35400f10e000000000001000000010000000002000000000000000800000001010000004f41540100000018000000010100000100010001000000010001050901010000000000
|
@@ -1 +1 @@
|
|
1
|
-
IOR:
|
1
|
+
IOR:010000001000000049444c3a4163636f756e743a312e300001000000000000006c000000010102010d0000003137322e31362e362e3233340000c6ec1b00000014010f00525354e793d35460b800000000000001000000010000000002000000000000000800000001ff0000004f4154010000001800000001ff00000100010001000000010001050901010000000000
|
data/test/OBV/Tree/server.ior
CHANGED
@@ -1 +1 @@
|
|
1
|
-
IOR:
|
1
|
+
IOR:010000000f00000049444c3a7061737365723a312e30000001000000000000006c000000010102000d0000003137322e31362e362e3233340000ccec1b00000014010f00525354e893d354d89e01000000000001000000010000000002000000000000000800000001010000004f41540100000018000000010100000100010001000000010001050901010000000000
|
@@ -1 +1 @@
|
|
1
|
-
IOR:
|
1
|
+
IOR:010000002100000049444c3a4f42565f5472756e63617461626c65546573742f546573743a312e300000000001000000000000006c000000010102000d0000003137322e31362e362e3233340000d2ec1b00000014010f00525354e993d354c80000000000000001000000010000000002000000000000000800000001010000004f41540100000018000000010100000100010001000000010001050901010000000000
|
@@ -1 +1 @@
|
|
1
|
-
IOR:
|
1
|
+
IOR:010000000d00000049444c3a546573743a312e300000000001000000000000006c000000010102000d0000003137322e31362e362e3233340000d8ec1b00000014010f00525354ea93d354609a05000000000001000000010000000002000000000000000800000001010000004f41540100000018000000010100000100010001000000010001050901010000000000
|
data/test/Object/client.rb
CHANGED
@@ -57,42 +57,51 @@ begin
|
|
57
57
|
|
58
58
|
obj = orb.string_to_object(OPTIONS[:iorfile])
|
59
59
|
|
60
|
-
|
61
|
-
|
60
|
+
unless defined?(JRUBY_VERSION) && CORBA::Native::Jacorb::MAJOR_VERSION == 3 &&
|
61
|
+
([4,5].include? CORBA::Native::Jacorb::MINOR_VERSION)
|
62
|
+
## JacORB 3.4 introduced an optimization which *requires* use of the Java endorsed dirs
|
63
|
+
## mechanism to replace standard JDK CORBA stubs with the JacORB version in order to
|
64
|
+
## have JacORB process these base methods correctly with DSI servants
|
65
|
+
## JacORB 3.6 may be released with a fix for this
|
66
|
+
id = obj._repository_id # fetches id remotely as obj has not been narrowed
|
67
|
+
# yet and thus there is no type known yet
|
62
68
|
|
63
|
-
|
69
|
+
assert 'incorrect repository id returned (1)', id == Test::Hello._tc.id
|
64
70
|
|
65
|
-
|
71
|
+
STDERR.puts "Got Object reference for [#{id}]"
|
66
72
|
|
67
|
-
|
73
|
+
hello_obj = Test::Hello._narrow(obj)
|
68
74
|
|
69
|
-
|
70
|
-
|
75
|
+
id = obj._repository_id # returns locally known id as obj has been narrowed
|
76
|
+
# and thus type is known
|
71
77
|
|
72
|
-
|
78
|
+
assert 'incorrect repository id returned (2)', id == Test::Hello._tc.id
|
73
79
|
|
74
|
-
|
80
|
+
the_string = hello_obj.get_string()
|
75
81
|
|
76
|
-
|
82
|
+
puts "string returned <#{the_string}>"
|
77
83
|
|
78
|
-
|
84
|
+
obj = hello_obj._get_component
|
79
85
|
|
80
|
-
|
81
|
-
|
86
|
+
id = obj._repository_id # fetches id remotely which is doctored by
|
87
|
+
# overridden servant method
|
82
88
|
|
83
|
-
|
89
|
+
assert 'original repository id returned', id != Test::Hello._tc.id
|
84
90
|
|
85
|
-
|
91
|
+
STDERR.puts "Got Object reference for [#{id}]"
|
86
92
|
|
87
|
-
|
88
|
-
|
93
|
+
# since _is_a? is also overridden we still get a match on the original id
|
94
|
+
assert '_is_a? returned FALSE', obj._is_a?(Test::Hello._tc.id)
|
89
95
|
|
90
|
-
|
96
|
+
hello2_obj = Test::Hello._narrow(obj)
|
91
97
|
|
92
|
-
|
93
|
-
|
98
|
+
id = obj._repository_id # returns locally known id as obj has been narrowed
|
99
|
+
# and thus type is known
|
94
100
|
|
95
|
-
|
101
|
+
assert 'incorrect repository id returned (3)', id == Test::Hello._tc.id
|
102
|
+
else
|
103
|
+
hello2_obj = Test::Hello._narrow(obj)
|
104
|
+
end
|
96
105
|
|
97
106
|
hello2_obj.shutdown()
|
98
107
|
|