Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: JRuby 1.1.6
-
Fix Version/s: JRuby 1.2
-
Component/s: None
-
Labels:None
-
Environment:Ubuntu 8.10 running on a 64 bit Intel. I am using OpenJDK 1.6.0
-
Number of attachments :
Description
When using ZenTest's autotest it throughs this exceptions
/usr/local/share/jruby/lib/ruby/site_ruby/1.8/builtin/javasupport/java.rb:56:in `get_proxy_or_package_under_package': invalid package module (ArgumentError)
from /usr/local/share/jruby/lib/ruby/site_ruby/1.8/builtin/javasupport/java.rb:56:in `method_missing'
The ZenTest code is this one. It simply gets the name of all the modules
ObjectSpace.each_object(Module)
The line of JRuby that causes the problems is this one
JavaUtilities.get_proxy_or_package_under_package self, sym
Here are the parameters that are passed in.
sym: name
sym class: Symbol
self: JavaPackageModuleTemplate
self class: Module
Activity
Thomas E Enebo
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Resolution | Won't Fix [ 2 ] | |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Fix Version/s | JRuby 1.2 [ 14757 ] |
Charles Oliver Nutter
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |
I am won't fixing this. The problem is zentest is assuming all modules must have a name method. This will not be true for any blankslate modules or our internal Java package modules. We need test to respond because something like:
Would not be possible...
Bill showed the proper change for zentest in an email thread:
ObjectSpace.each_object(Module) { |m| $stdlib[m.name] = true if m.respond_to?:name }