java errors are hidden when an instance of a class is created and we used the 
method include_package to load the specific java package
--------------------------------------------------------------------------------------------------------------------------------------

                 Key: JRUBY-3889
                 URL: http://jira.codehaus.org/browse/JRUBY-3889
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
            Reporter: David Calavera
         Attachments: include_package_patch.zip

Using the method include_package to load a full java package into a ruby 
module, when we instance a class of that package and the java code raises an 
error with a custom message that message is hidden by the ruby code. ie:

module Tomcat
  include_package 'org.apache.catalina.ha'
end

Tomcat::SimpleTcpCluster.new

This code should raise an error with the message "cannot link Java class 
org.apache.catalina.ha.tcp.SimpleTcpCluster, probable missing dependency: 
org/apache/catalina/tribes/MembershipListener" but the message is not shown. 

I include a zip that contains a spec with a failing and a passing scenarios and 
two jars that I used when I found the bug.

I'm sorry but I can't figure out where I have to enable the java backtrace to 
solve the bug.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
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


Reply via email to