Rescued exception in include_package still sets $!
--------------------------------------------------
Key: JRUBY-3840
URL: http://jira.codehaus.org/browse/JRUBY-3840
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.3.1
Environment: Windows Cygwin
Reporter: Scott A Miller
module MyTest
include Java
include_package "javax.swing"
include_package "java.io"
FileOutputStream
puts $!
end
~/test>jruby exception.rb
cannot load Java class javax.swing.FileOutputStream
The exception is coming from Java.get_java_class when it first looks in
javax.swing (tries to load javax.swing.FileOutputStream). That's rescued, but
the $! variable is not cleared, before the class is found in java.io.
--
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