Illegal attempt to subclass a final Java class should fail when the subclass is
defined
---------------------------------------------------------------------------------------
Key: JRUBY-1000
URL: http://jira.codehaus.org/browse/JRUBY-1000
Project: JRuby
Issue Type: Bug
Components: Java Integration
Affects Versions: JRuby 1.0.0RC2
Reporter: Bill Dortch
Priority: Minor
I really just wanted to get in #1000...
An illegal attempt to extend a final Java class should fail (with a Ruby
exception) at the time the class is declared, rather than waiting until the
class is instantiated:
{noformat}
>> class L < java.lang.Long
>> end
=> nil
>> l = L.new 1
NativeException: java.lang.IllegalArgumentException: cannot extend final class
from JavaProxyClassFactory.java:762:in
`org.jruby.javasupport.proxy.JavaProxyClassFactory.validateArgs'
from JavaProxyClassFactory.java:162:in
`org.jruby.javasupport.proxy.JavaProxyClassFactory.newProxyClass'
...etc...
{noformat}
--
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