After calling const_set, setting const name didn't set Class.name -----------------------------------------------------------------
Key: JRUBY-6030 URL: https://jira.codehaus.org/browse/JRUBY-6030 Project: JRuby Issue Type: Bug Affects Versions: JRuby 1.6.4 Environment: jruby 1.6.4 (ruby-1.8.7-p330) (2011-08-23 17ea768) (OpenJDK 64-Bit Server VM 1.7.0-internal) [darwin-x86_64-java] Reporter: Lin Jen-Shin Assignee: Thomas E Enebo Please read reproducible code here: https://gist.github.com/1176584 > ruby -v jruby_bug.rb ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin10.8.0] C > rbx -v jruby_bug.rb rubinius 1.2.4 (1.8.7 release 2011-07-05 JI) [x86_64-apple-darwin10.8.0] C > jruby -v jruby_bug.rb jruby 1.6.4 (ruby-1.8.7-p330) (2011-08-23 17ea768) (OpenJDK 64-Bit Server VM 1.7.0-internal) [darwin-x86_64-java] #<Class:0x147e097bc> TypeError: can't dump anonymous class #<Class:0x147e097bc> dump at org/jruby/RubyMarshal.java:101 (root) at jruby_bug.rb:5 > jruby --1.9 -v jruby_bug.rb jruby 1.6.4 (ruby-1.9.2-p136) (2011-08-23 17ea768) (OpenJDK 64-Bit Server VM 1.7.0-internal) [darwin-x86_64-java] #<Class:0x11007d798> TypeError: can't dump anonymous class #<Class:0x11007d798> dump at org/jruby/RubyMarshal.java:101 (root) at jruby_bug.rb:5 -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email