diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | lib/soap/mapping/rubytypeFactory.rb | 4 |
2 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,9 @@ +Thu Feb 19 22:24:04 2004 NAKAMURA, Hiroshi <nakahiro@sarion.co.jp> + + * lib/soap/mapping/rubytypeFactory.rb: should not dump singleton class. + [ruby-dev:22588] + c = class << Object.new; class C; self; end; end; SOAPMarshal.dump(c) + Thu Feb 19 18:08:18 2004 Gavin Sinclair <gsinclair@soyabean.com.au> * ext/strscan/strscan.c: improved documentation diff --git a/lib/soap/mapping/rubytypeFactory.rb b/lib/soap/mapping/rubytypeFactory.rb index a447715add..f79bc78cc7 100644 --- a/lib/soap/mapping/rubytypeFactory.rb +++ b/lib/soap/mapping/rubytypeFactory.rb @@ -167,7 +167,7 @@ class RubytypeFactory < Factory unless @allow_original_mapping return nil end - if obj.name.empty? + if obj.to_s[0] == ?# raise TypeError.new("Can't dump anonymous class #{ obj }.") end param = SOAPStruct.new(TYPE_CLASS) @@ -178,7 +178,7 @@ class RubytypeFactory < Factory unless @allow_original_mapping return nil end - if obj.name.empty? + if obj.to_s[0] == ?# raise TypeError.new("Can't dump anonymous module #{ obj }.") end param = SOAPStruct.new(TYPE_MODULE) |