Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

poor error message when unable to create parent class #2243

Closed
rdp opened this issue Nov 25, 2014 · 1 comment
Closed

poor error message when unable to create parent class #2243

rdp opened this issue Nov 25, 2014 · 1 comment
Milestone

Comments

@rdp
Copy link
Contributor

rdp commented Nov 25, 2014

ex:
install ubuntu, install default-jre-headless

run this:

https://gist.github.com/rdp/b25a0483c196c856c33a

require 'java'

class A < javax.swing.JFrame

def initialize _args
super(_args)
end
end

A.new

expected output:

Java::JavaAwt::HeadlessException exception (which is generated with a straight javax.swing.JFrame.new call)

current output:

jruby ArgumentError: Constructor invocation failed: null

it's like the real error message is being masked.

possibly not a high prio, but thought I'd mention it.

@kares
Copy link
Member

kares commented Jun 22, 2017

gist version runs fine on 9K (exits), while your piece here fails as expected with a

ArgumentError: wrong number of arguments (0 for 1)

... which is expected since the argument is not provided.

assuming this is resolved with the updated JI overload method matching, for 1.7.x is won't fix.

@kares kares closed this as completed Jun 22, 2017
@kares kares added this to the Won't Fix milestone Jun 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants