Unintuitive error message when super not called from java subclasses
--------------------------------------------------------------------
Key: JRUBY-4393
URL: http://jira.codehaus.org/browse/JRUBY-4393
Project: JRuby
Issue Type: Bug
Environment: jruby 1.5.0.dev (ruby 1.8.7 patchlevel 174) (2009-12-18
a0fe5cb) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_17) [x86_64-java]
Reporter: Marc-Andre Lafortune
Assignee: Thomas E Enebo
Priority: Minor
Sorry to complain (again!) about error messages...
$ jruby -r java -e '
class X < java.io.File
def initialize
puts absolutePath
end
end
X.new
'
-e:4:in `initialize': Java wrapper with no contents: (RuntimeError)
from -e:7:in `new'
from -e:7
You'll get this error message anytime you call the object before it has been
initialized (here with super). Makes sense once I've figured it out, but the
message itself could be clearer, like "Java object has not been initialized" or
something.
Thanks
--
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