r2corba 1.5.5-x64-mingw32 → 1.6.0-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/corba.rb +1 -1
- data/lib/corba/cbase/ORB.rb +19 -16
- data/lib/corba/cbase/Request.rb +3 -3
- data/lib/corba/cbase/Values.rb +4 -2
- data/lib/corba/cbase/exception.rb +4 -2
- data/lib/corba/cbase/poa.rb +1 -1
- data/lib/corba/cbase/policies.rb +1 -1
- data/lib/corba/cbase/require.rb +8 -1
- data/lib/corba/common/Any.rb +2 -1
- data/lib/corba/common/IDL.rb +1 -1
- data/lib/corba/common/ORB.rb +21 -21
- data/lib/corba/common/Object.rb +14 -13
- data/lib/corba/common/Servant.rb +4 -4
- data/lib/corba/common/Stub.rb +6 -6
- data/lib/corba/common/Typecode.rb +35 -8
- data/lib/corba/common/Union.rb +5 -0
- data/lib/corba/common/Values.rb +1 -0
- data/lib/corba/common/const.rb +1 -1
- data/lib/corba/common/exception.rb +2 -1
- data/lib/corba/common/version.rb +2 -2
- data/lib/corba/idl/IDL.rb +1 -1
- data/lib/corba/jbase/Any.rb +6 -4
- data/lib/corba/jbase/ORB.rb +2 -2
- data/lib/corba/jbase/Object.rb +13 -13
- data/lib/corba/jbase/Request.rb +3 -3
- data/lib/corba/jbase/Streams.rb +64 -0
- data/lib/corba/jbase/Typecode.rb +3 -2
- data/lib/corba/jbase/Values.rb +2 -0
- data/lib/corba/jbase/exception.rb +1 -0
- data/lib/corba/jbase/poa.rb +18 -18
- data/lib/corba/jbase/policies.rb +29 -29
- data/lib/corba/jbase/require.rb +4 -0
- data/lib/corba/svcs/ins/cos_naming.rb +10 -1
- data/lib/corba/svcs/ins/ins.rb +45 -45
- data/lib/corba/svcs/ins/naming_service.rb +6 -6
- data/lib/ridlbe/ruby/config.rb +27 -20
- data/lib/ridlbe/ruby/walker.rb +276 -253
- data/mkrf_conf_bingem.rb +4 -4
- data/rakelib/build.rake +1 -1
- data/rakelib/config.rake +1 -1
- data/rakelib/config.rb +9 -9
- data/rakelib/ext.rake +6 -65
- data/rakelib/ext_r2tao.rb +2 -39
- data/rakelib/gem.rake +20 -20
- data/rakelib/gem.rb +1 -1
- data/rakelib/package.rake +1 -1
- data/test/BiDirectional/client.rb +16 -16
- data/test/BiDirectional/run_test.rb +10 -10
- data/test/BiDirectional/server.rb +20 -20
- data/test/CORBA_Services/Naming/BindingIterator/client.rb +14 -14
- data/test/CORBA_Services/Naming/BindingIterator/run_test.rb +12 -12
- data/test/CORBA_Services/Naming/BindingIterator/server.rb +17 -17
- data/test/CORBA_Services/Naming/Corbaname/client.rb +14 -14
- data/test/CORBA_Services/Naming/Corbaname/run_test.rb +12 -12
- data/test/CORBA_Services/Naming/Corbaname/server.rb +20 -20
- data/test/CORBA_Services/Naming/Simple/client.rb +14 -14
- data/test/CORBA_Services/Naming/Simple/run_test.rb +12 -12
- data/test/CORBA_Services/Naming/Simple/server.rb +17 -17
- data/test/Collocation/run_test.rb +10 -10
- data/test/Collocation/test.rb +26 -19
- data/test/Connect_Timeout/client.rb +15 -15
- data/test/Connect_Timeout/run_test.rb +10 -10
- data/test/DII/client.rb +27 -27
- data/test/DII/run_test.rb +10 -10
- data/test/DII/server.rb +15 -15
- data/test/DSI/client.rb +15 -15
- data/test/DSI/run_test.rb +10 -10
- data/test/DSI/server.rb +16 -16
- data/test/Exceptions/client.rb +19 -19
- data/test/Exceptions/run_test.rb +10 -10
- data/test/Exceptions/server.rb +15 -15
- data/test/Hello/client.rb +15 -15
- data/test/Hello/run_test.rb +10 -10
- data/test/Hello/server.rb +16 -16
- data/test/IDL_Test/client.rb +20 -20
- data/test/IDL_Test/run_test.rb +10 -10
- data/test/IDL_Test/server.rb +18 -18
- data/test/IORMap/client.rb +14 -14
- data/test/IORMap/run_test.rb +10 -10
- data/test/IORMap/server.rb +22 -22
- data/test/IORTable/client.rb +14 -14
- data/test/IORTable/run_test.rb +10 -10
- data/test/IORTable/server.rb +22 -22
- data/test/Implicit_Conversion/client.rb +19 -16
- data/test/Implicit_Conversion/run_test.rb +10 -10
- data/test/Implicit_Conversion/server.rb +15 -15
- data/test/Multi_Threading/Multiple_ORB/client.rb +13 -13
- data/test/Multi_Threading/Multiple_ORB/run_test.rb +10 -10
- data/test/Multi_Threading/Multiple_ORB/server.rb +16 -16
- data/test/Multi_Threading/Simple/client.rb +15 -15
- data/test/Multi_Threading/Simple/run_test.rb +10 -10
- data/test/Multi_Threading/Simple/server.rb +15 -15
- data/test/Multi_Threading/Threads/client.rb +15 -15
- data/test/Multi_Threading/Threads/run_test.rb +10 -10
- data/test/Multi_Threading/Threads/server.rb +17 -17
- data/test/Multi_Threading/Threads/watchdog.rb +15 -15
- data/test/Multiple_Servant_Interfaces/client.rb +13 -13
- data/test/Multiple_Servant_Interfaces/run_test.rb +10 -10
- data/test/Multiple_Servant_Interfaces/server.rb +17 -17
- data/test/Nil/run_test.rb +10 -10
- data/test/Nil/test.rb +13 -13
- data/test/OBV/AbstractInterface/client.rb +13 -13
- data/test/OBV/AbstractInterface/run_test.rb +10 -10
- data/test/OBV/AbstractInterface/server.rb +19 -18
- data/test/OBV/Custom/OBV_impl.rb +2 -0
- data/test/OBV/Custom/client.rb +13 -13
- data/test/OBV/Custom/run_test.rb +10 -10
- data/test/OBV/Custom/server.rb +15 -15
- data/test/OBV/Simple/OBV_impl.rb +1 -0
- data/test/OBV/Simple/client.rb +13 -13
- data/test/OBV/Simple/run_test.rb +10 -10
- data/test/OBV/Simple/server.rb +15 -15
- data/test/OBV/Simple_Event/Event_impl.rb +1 -0
- data/test/OBV/Simple_Event/client.rb +13 -13
- data/test/OBV/Simple_Event/run_test.rb +10 -10
- data/test/OBV/Simple_Event/server.rb +15 -15
- data/test/OBV/Supports/client.rb +18 -18
- data/test/OBV/Supports/run_test.rb +10 -10
- data/test/OBV/Supports/server.rb +14 -14
- data/test/OBV/Supports/supports_impl.rb +3 -0
- data/test/OBV/Tree/client.rb +13 -13
- data/test/OBV/Tree/run_test.rb +10 -10
- data/test/OBV/Tree/server.rb +18 -18
- data/test/OBV/Truncatable/client.rb +56 -56
- data/test/OBV/Truncatable/run_test.rb +10 -10
- data/test/OBV/Truncatable/server.rb +14 -14
- data/test/OBV/ValueBox/client.rb +148 -147
- data/test/OBV/ValueBox/run_test.rb +10 -10
- data/test/OBV/ValueBox/server.rb +15 -15
- data/test/Object/client.rb +13 -13
- data/test/Object/run_test.rb +10 -10
- data/test/Object/server.rb +18 -18
- data/test/POA/run_test.rb +10 -10
- data/test/POA/test.rb +15 -15
- data/test/Param_Test/client.rb +47 -47
- data/test/Param_Test/run_test.rb +10 -10
- data/test/Param_Test/server.rb +55 -55
- data/test/Performance/Simple/client.rb +15 -15
- data/test/Performance/Simple/run_test.rb +10 -10
- data/test/Performance/Simple/server.rb +15 -15
- data/test/Policies/run_test.rb +10 -10
- data/test/Policies/test.rb +23 -23
- data/test/Timeout/client.rb +17 -17
- data/test/Timeout/run_test.rb +10 -10
- data/test/Timeout/server.rb +18 -18
- data/test/lib/test.rb +13 -7
- data/test/test_runner.rb +19 -19
- metadata +8 -8
@@ -49,6 +49,7 @@ module R2CORBA
|
|
49
49
|
@name_types = {}
|
50
50
|
super
|
51
51
|
end
|
52
|
+
|
52
53
|
def []=(id, tc)
|
53
54
|
synchronize do
|
54
55
|
@id_types[id] = tc
|
@@ -57,6 +58,7 @@ module R2CORBA
|
|
57
58
|
@name_types[tc.name] = types_for_name_
|
58
59
|
end
|
59
60
|
end
|
61
|
+
|
60
62
|
def [](id)
|
61
63
|
tc = nil
|
62
64
|
synchronize do
|
@@ -64,6 +66,7 @@ module R2CORBA
|
|
64
66
|
end
|
65
67
|
tc
|
66
68
|
end
|
69
|
+
|
67
70
|
def types_for_name(name)
|
68
71
|
tcs = nil
|
69
72
|
synchronize do
|
@@ -184,7 +187,7 @@ module R2CORBA
|
|
184
187
|
end
|
185
188
|
|
186
189
|
def equal?(tc)
|
187
|
-
raise ArgumentError,
|
190
|
+
raise ArgumentError, 'expected CORBA::TypeCode' unless tc.is_a?(CORBA::TypeCode)
|
188
191
|
begin
|
189
192
|
self.tc_.equal(tc.tc_)
|
190
193
|
rescue ::NativeException
|
@@ -193,7 +196,7 @@ module R2CORBA
|
|
193
196
|
end
|
194
197
|
|
195
198
|
def equivalent?(tc)
|
196
|
-
raise ArgumentError,
|
199
|
+
raise ArgumentError, 'expected CORBA::TypeCode' unless tc.is_a?(CORBA::TypeCode)
|
197
200
|
begin
|
198
201
|
self.tc_.equivalent(tc.tc_)
|
199
202
|
rescue ::NativeException
|
@@ -397,19 +400,24 @@ module R2CORBA
|
|
397
400
|
@recursive_tc ||= TypeCode.typecode_for_id(self.id)
|
398
401
|
@recursive_tc || ::CORBA::TypeCode.new(TK_NULL)
|
399
402
|
end
|
403
|
+
|
400
404
|
def resolved_tc
|
401
405
|
recursed_tc.resolved_tc
|
402
406
|
end
|
407
|
+
|
403
408
|
def is_recursive_tc?
|
404
409
|
true
|
405
410
|
end
|
411
|
+
|
406
412
|
def get_type
|
407
413
|
@recursive_tc ||= TypeCode.typecode_for_id(self.id)
|
408
414
|
if @recursive_tc.nil? then nil; else @recursive_tc.get_type; end
|
409
415
|
end
|
416
|
+
|
410
417
|
def validate(val)
|
411
418
|
recursed_tc.validate(val)
|
412
419
|
end
|
420
|
+
|
413
421
|
def needs_conversion(val)
|
414
422
|
recursed_tc.needs_conversion(val)
|
415
423
|
end
|
@@ -466,7 +474,7 @@ module R2CORBA
|
|
466
474
|
"widestring size exceeds bound: #{self.length.to_s}",
|
467
475
|
1, ::CORBA::COMPLETED_NO) unless self.length == 0 || val.size <= self.length
|
468
476
|
raise ::CORBA::MARSHAL.new(
|
469
|
-
|
477
|
+
'invalid widestring element(s)',
|
470
478
|
1, ::CORBA::COMPLETED_NO) if val.any? { |el| !(UShortRange === (el.respond_to?(:to_int) ? el.to_int : el)) }
|
471
479
|
val.any? { |el| !(::Integer === el) } ? val.collect { |el| el.to_int } : val
|
472
480
|
end
|
@@ -607,6 +615,7 @@ module R2CORBA
|
|
607
615
|
def get_type
|
608
616
|
@type || self.content_type.get_type
|
609
617
|
end
|
618
|
+
|
610
619
|
def validate(val)
|
611
620
|
self.content_type.validate(val)
|
612
621
|
end
|
@@ -625,6 +634,7 @@ module R2CORBA
|
|
625
634
|
def initialize(*args)
|
626
635
|
raise 'overload required'
|
627
636
|
end
|
637
|
+
|
628
638
|
def add_member(name, tc, access)
|
629
639
|
raise ArgumentError, 'expected CORBA::TypeCode' unless tc.is_a?(CORBA::TypeCode)
|
630
640
|
@members << [name, tc, access]
|
@@ -683,10 +693,12 @@ module R2CORBA
|
|
683
693
|
def member_count
|
684
694
|
@members.size
|
685
695
|
end
|
696
|
+
|
686
697
|
def member_name(index)
|
687
698
|
raise ::CORBA::TypeCode::Bounds.new if (index < 0) || (index >= @members.size)
|
688
699
|
@members[index][0]
|
689
700
|
end
|
701
|
+
|
690
702
|
def member_type(index)
|
691
703
|
raise ::CORBA::TypeCode::Bounds.new if (index < 0) || (index >= @members.size)
|
692
704
|
@members[index][1]
|
@@ -773,6 +785,7 @@ module R2CORBA
|
|
773
785
|
def initialize(*args)
|
774
786
|
raise 'overload required'
|
775
787
|
end
|
788
|
+
|
776
789
|
def add_member(name, tc)
|
777
790
|
raise ArgumentError, 'expected CORBA::TypeCode' unless tc.is_a?(CORBA::TypeCode)
|
778
791
|
@members << [name, tc]
|
@@ -821,10 +834,12 @@ module R2CORBA
|
|
821
834
|
def member_count
|
822
835
|
@members.size
|
823
836
|
end
|
837
|
+
|
824
838
|
def member_name(index)
|
825
839
|
raise ::CORBA::TypeCode::Bounds.new if (index < 0) || (index >= @members.size)
|
826
840
|
@members[index][0]
|
827
841
|
end
|
842
|
+
|
828
843
|
def member_type(index)
|
829
844
|
raise ::CORBA::TypeCode::Bounds.new if (index < 0) || (index >= @members.size)
|
830
845
|
@members[index][1]
|
@@ -883,16 +898,20 @@ module R2CORBA
|
|
883
898
|
def initialize(*args)
|
884
899
|
raise 'overload required'
|
885
900
|
end
|
901
|
+
|
886
902
|
# because creating the native tc involves creating Any's we postpone until actually needed
|
887
903
|
def tc_
|
888
904
|
raise 'overload required'
|
889
905
|
end
|
906
|
+
|
890
907
|
def id
|
891
908
|
@id
|
892
909
|
end
|
910
|
+
|
893
911
|
def name
|
894
912
|
@name
|
895
913
|
end
|
914
|
+
|
896
915
|
def add_member(label, name, tc)
|
897
916
|
raise ArgumentError, 'expected CORBA::TypeCode' unless tc.is_a?(CORBA::TypeCode)
|
898
917
|
@switchtype.validate(label) unless label == :default
|
@@ -935,7 +954,7 @@ module R2CORBA
|
|
935
954
|
return val if val.nil?
|
936
955
|
super(val)
|
937
956
|
@switchtype.validate(val._disc) unless val._disc == :default
|
938
|
-
#raise CORBA::MARSHAL.new(
|
957
|
+
# raise CORBA::MARSHAL.new(
|
939
958
|
# "invalid discriminator value (#{val._disc.to_s}) for union #{name}",
|
940
959
|
# 1, CORBA::COMPLETED_NO) unless @labels.has_key?(val._disc)
|
941
960
|
if @labels.has_key?(val._disc) # no need to check for implicit defaults
|
@@ -958,28 +977,33 @@ module R2CORBA
|
|
958
977
|
def member_count
|
959
978
|
@members.size
|
960
979
|
end
|
980
|
+
|
961
981
|
def member_name(index)
|
962
982
|
raise CORBA::TypeCode::Bounds.new if (index < 0) || (index >= @members.size)
|
963
983
|
@members[index][1]
|
964
984
|
end
|
985
|
+
|
965
986
|
def member_type(index)
|
966
987
|
raise CORBA::TypeCode::Bounds.new if (index < 0) || (index >= @members.size)
|
967
988
|
@members[index][2]
|
968
989
|
end
|
990
|
+
|
969
991
|
def member_label(index)
|
970
992
|
raise CORBA::TypeCode::Bounds.new if (index < 0) || (index >= @members.size)
|
971
993
|
@members[index][0]
|
972
994
|
end
|
995
|
+
|
973
996
|
def discriminator_type
|
974
997
|
@switchtype
|
975
998
|
end
|
999
|
+
|
976
1000
|
def default_index
|
977
1001
|
if @labels.has_key? :default then @labels[:default]; else -1; end
|
978
1002
|
end
|
979
1003
|
|
980
1004
|
def label_index(val)
|
981
1005
|
val = @switchtype.validate(val) unless val == :default
|
982
|
-
#raise CORBA::MARSHAL.new(
|
1006
|
+
# raise CORBA::MARSHAL.new(
|
983
1007
|
# "invalid discriminator value (#{val}) for union #{name}",
|
984
1008
|
# 1, CORBA::COMPLETED_NO) unless val == :default || @labels.has_key?(val) || @labels.has_key?(:default)
|
985
1009
|
if val == :default then @labels[:default]; elsif @labels.has_key?(val) then @labels[val] else nil end
|
@@ -1002,6 +1026,7 @@ module R2CORBA
|
|
1002
1026
|
def initialize(*args)
|
1003
1027
|
raise 'overload required'
|
1004
1028
|
end
|
1029
|
+
|
1005
1030
|
def get_type
|
1006
1031
|
::Integer
|
1007
1032
|
end
|
@@ -1021,6 +1046,7 @@ module R2CORBA
|
|
1021
1046
|
def member_count
|
1022
1047
|
@members.size
|
1023
1048
|
end
|
1049
|
+
|
1024
1050
|
def member_name(index)
|
1025
1051
|
raise CORBA::TypeCode::Bounds.new if (index < 0) || (index >= @members.size)
|
1026
1052
|
@members[index]
|
@@ -1093,17 +1119,17 @@ module R2CORBA
|
|
1093
1119
|
end
|
1094
1120
|
|
1095
1121
|
def CORBA._tc_CCMObject
|
1096
|
-
@@tc_CCMObject ||= TypeCode::Component.new(
|
1122
|
+
@@tc_CCMObject ||= TypeCode::Component.new('IDL:omg.org/CORBA/CCMObject:1.0', 'CCMObject', CORBA::Object).freeze
|
1097
1123
|
end
|
1098
1124
|
|
1099
1125
|
def CORBA._tc_CCHome
|
1100
|
-
@@tc_CCHome ||= TypeCode::Home.new(
|
1126
|
+
@@tc_CCHome ||= TypeCode::Home.new('IDL:omg.org/CORBA/CCHome:1.0', 'CCHome', CORBA::Object).freeze
|
1101
1127
|
end
|
1102
1128
|
|
1103
1129
|
# define system exception related typecode constants
|
1104
1130
|
|
1105
1131
|
def CORBA._tc_CompletionStatus
|
1106
|
-
@@tc_CompletionStatus ||= TypeCode::Enum.new(
|
1132
|
+
@@tc_CompletionStatus ||= TypeCode::Enum.new('IDL:omg.org/CORBA/CompletionStatus:1.0', 'CompletionStatus',
|
1107
1133
|
CORBA::COMPLETED_TXT.collect {|t| "COMPLETED_#{t}"})
|
1108
1134
|
end
|
1109
1135
|
|
@@ -1111,6 +1137,7 @@ module R2CORBA
|
|
1111
1137
|
def to_d(precision)
|
1112
1138
|
BigDecimal(self.to_s(precision))
|
1113
1139
|
end
|
1140
|
+
|
1114
1141
|
def LongDouble._tc
|
1115
1142
|
CORBA._tc_longdouble
|
1116
1143
|
end
|
data/lib/corba/common/Union.rb
CHANGED
@@ -19,16 +19,20 @@ module R2CORBA
|
|
19
19
|
@discriminator = nil
|
20
20
|
@value = nil
|
21
21
|
end
|
22
|
+
|
22
23
|
def _is_at_default?
|
23
24
|
@discriminator == :default
|
24
25
|
end
|
26
|
+
|
25
27
|
def _value_tc
|
26
28
|
ix = self.class._tc.label_index(@discriminator)
|
27
29
|
self.class._tc.member_type(ix)
|
28
30
|
end
|
31
|
+
|
29
32
|
def _disc
|
30
33
|
@discriminator
|
31
34
|
end
|
35
|
+
|
32
36
|
def _disc=(val)
|
33
37
|
m_cur = self.class._tc.label_member(@discriminator) unless @discriminator.nil?
|
34
38
|
m_new = self.class._tc.label_member(val)
|
@@ -39,6 +43,7 @@ module R2CORBA
|
|
39
43
|
@discriminator = val
|
40
44
|
disc_
|
41
45
|
end
|
46
|
+
|
42
47
|
def _value
|
43
48
|
@value
|
44
49
|
end
|
data/lib/corba/common/Values.rb
CHANGED
data/lib/corba/common/const.rb
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
module R2CORBA
|
14
14
|
module CORBA
|
15
15
|
COMPLETED_YES, COMPLETED_NO, COMPLETED_MAYBE = (0..2).to_a
|
16
|
-
COMPLETED_TXT = [
|
16
|
+
COMPLETED_TXT = ['YES', 'NO', 'MAYBE'].freeze
|
17
17
|
class Exception < StandardError
|
18
18
|
end
|
19
19
|
|
@@ -29,6 +29,7 @@ module R2CORBA
|
|
29
29
|
def reason
|
30
30
|
self.message
|
31
31
|
end
|
32
|
+
|
32
33
|
def to_s
|
33
34
|
"CORBA::#{self.class::Name}(#{super}) [minor=#{@minor};completed=#{COMPLETED_TXT[@completed.to_i]}]"
|
34
35
|
end
|
data/lib/corba/common/version.rb
CHANGED
data/lib/corba/idl/IDL.rb
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
module R2CORBA
|
13
13
|
|
14
14
|
module CORBA
|
15
|
-
def CORBA.implement(idlfile, params={}, genbits = IDL::CLIENT_STUB, &block)
|
15
|
+
def CORBA.implement(idlfile, params = {}, genbits = IDL::CLIENT_STUB, &block)
|
16
16
|
IDL.implement(idlfile, params, genbits, &block)
|
17
17
|
end
|
18
18
|
end
|
data/lib/corba/jbase/Any.rb
CHANGED
@@ -15,12 +15,14 @@ module R2CORBA
|
|
15
15
|
module Dynamic
|
16
16
|
include_package 'org.omg.DynamicAny'
|
17
17
|
end
|
18
|
+
|
18
19
|
module Reflect
|
19
20
|
java_import java.lang.reflect.Array
|
20
21
|
end
|
21
22
|
end
|
23
|
+
|
22
24
|
class Any
|
23
|
-
def to_java(jorb=nil, jany=nil)
|
25
|
+
def to_java(jorb = nil, jany = nil)
|
24
26
|
rtc = self._tc
|
25
27
|
rval = self._value.nil? ? self._value : rtc.validate(self._value)
|
26
28
|
restc = rtc.resolved_tc
|
@@ -102,7 +104,7 @@ module R2CORBA
|
|
102
104
|
return jany
|
103
105
|
else
|
104
106
|
dynFactory = CORBA::Native::Dynamic::DynAnyFactoryHelper.narrow(
|
105
|
-
(jorb || CORBA::ORB._orb).resolve_initial_references(
|
107
|
+
(jorb || CORBA::ORB._orb).resolve_initial_references('DynAnyFactory'))
|
106
108
|
jdynany = dynFactory.create_dyn_any_from_type_code(rtc.tc_)
|
107
109
|
begin
|
108
110
|
unless rval.nil?
|
@@ -152,7 +154,7 @@ module R2CORBA
|
|
152
154
|
end
|
153
155
|
end # to_java
|
154
156
|
|
155
|
-
def Any.from_java(jany, jorb=nil, rtc=nil)
|
157
|
+
def Any.from_java(jany, jorb = nil, rtc = nil)
|
156
158
|
rtc ||= CORBA::TypeCode.from_native(jany.type)
|
157
159
|
rval = nil
|
158
160
|
begin
|
@@ -224,7 +226,7 @@ module R2CORBA
|
|
224
226
|
end
|
225
227
|
else
|
226
228
|
dynFactory = CORBA::Native::Dynamic::DynAnyFactoryHelper.narrow(
|
227
|
-
(jorb || CORBA::ORB._orb).resolve_initial_references(
|
229
|
+
(jorb || CORBA::ORB._orb).resolve_initial_references('DynAnyFactory'))
|
228
230
|
jdynany = dynFactory.create_dyn_any(jany)
|
229
231
|
begin
|
230
232
|
restc = rtc.resolved_tc
|
data/lib/corba/jbase/ORB.rb
CHANGED
data/lib/corba/jbase/Object.rb
CHANGED
@@ -14,11 +14,11 @@ module R2CORBA
|
|
14
14
|
|
15
15
|
module Object
|
16
16
|
|
17
|
-
#ret InterfaceDef
|
17
|
+
# ret InterfaceDef
|
18
18
|
def _get_interface()
|
19
19
|
raise ::CORBA::NO_IMPLEMENT
|
20
|
-
#ifdef_obj = self.objref_._get_interface_def rescue CORBA::Exception.native2r($!)
|
21
|
-
#(ifdef_obj = CORBA::Native::InterfaceDefHelper.narrow(ifdef_obj) rescue CORBA::Exception.native2r($!)) unless ifdef_obj.nil?
|
20
|
+
# ifdef_obj = self.objref_._get_interface_def rescue CORBA::Exception.native2r($!)
|
21
|
+
# (ifdef_obj = CORBA::Native::InterfaceDefHelper.narrow(ifdef_obj) rescue CORBA::Exception.native2r($!)) unless ifdef_obj.nil?
|
22
22
|
end
|
23
23
|
|
24
24
|
# ::String logical_type_id
|
@@ -48,7 +48,7 @@ module R2CORBA
|
|
48
48
|
end
|
49
49
|
|
50
50
|
unless CORBA::Native::Portable::ObjectImpl.public_instance_methods.include?(:_get_component)
|
51
|
-
#ret ::CORBA::Object
|
51
|
+
# ret ::CORBA::Object
|
52
52
|
def _get_component()
|
53
53
|
raise CORBA::INV_OBJREF.new if self._is_nil?()
|
54
54
|
## ask the remote side
|
@@ -60,27 +60,27 @@ module R2CORBA
|
|
60
60
|
end
|
61
61
|
end
|
62
62
|
|
63
|
-
#def PolicyType policy_type
|
63
|
+
# def PolicyType policy_type
|
64
64
|
# ret Policy
|
65
65
|
def _get_policy(policy_type)
|
66
66
|
raise ::CORBA::NO_IMPLEMENT
|
67
67
|
end
|
68
68
|
|
69
|
-
#PolicyList policies
|
70
|
-
#SetOverrideType set_add
|
71
|
-
#ret ::CORBA::Object
|
72
|
-
def _set_policy_overrides(policies, set_add
|
69
|
+
# PolicyList policies
|
70
|
+
# SetOverrideType set_add
|
71
|
+
# ret ::CORBA::Object
|
72
|
+
def _set_policy_overrides(policies, set_add)
|
73
73
|
raise ::CORBA::NO_IMPLEMENT
|
74
74
|
end
|
75
75
|
|
76
|
-
#int[] types
|
77
|
-
#ret PolicyList
|
76
|
+
# int[] types
|
77
|
+
# ret PolicyList
|
78
78
|
def _get_policy_overrides(types)
|
79
79
|
raise ::CORBA::NO_IMPLEMENT
|
80
80
|
end
|
81
81
|
|
82
|
-
#PolicyList inconsistent_policies
|
83
|
-
#ret bool
|
82
|
+
# PolicyList inconsistent_policies
|
83
|
+
# ret bool
|
84
84
|
def _validate_connection(inconsistent_policies)
|
85
85
|
raise ::CORBA::NO_IMPLEMENT
|
86
86
|
end
|
data/lib/corba/jbase/Request.rb
CHANGED
@@ -36,7 +36,7 @@ module R2CORBA
|
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
|
-
def add_in_arg(tc, val, nm='')
|
39
|
+
def add_in_arg(tc, val, nm = '')
|
40
40
|
begin
|
41
41
|
self.req_.arguments.add_value(nm, Any.to_any(val, tc).to_java(self.req_.target._orb), CORBA::ARG_IN)
|
42
42
|
rescue ::NativeException
|
@@ -45,7 +45,7 @@ module R2CORBA
|
|
45
45
|
self.req_.arguments.count
|
46
46
|
end
|
47
47
|
|
48
|
-
def add_out_arg(tc, nm='')
|
48
|
+
def add_out_arg(tc, nm = '')
|
49
49
|
begin
|
50
50
|
self.req_.arguments.add_value(nm, Any.to_any(nil, tc).to_java(self.req_.target._orb), CORBA::ARG_OUT)
|
51
51
|
rescue ::NativeException
|
@@ -54,7 +54,7 @@ module R2CORBA
|
|
54
54
|
self.req_.arguments.count
|
55
55
|
end
|
56
56
|
|
57
|
-
def add_inout_arg(tc, val, nm='')
|
57
|
+
def add_inout_arg(tc, val, nm = '')
|
58
58
|
begin
|
59
59
|
self.req_.arguments.add_value(nm, Any.to_any(val, tc).to_java(self.req_.target._orb), CORBA::ARG_INOUT)
|
60
60
|
rescue ::NativeException
|