Skip to content

Instantly share code, notes, and snippets.

@rdp
Forked from anonymous/jframe_fail.rb
Created November 25, 2014 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rdp/b25a0483c196c856c33a to your computer and use it in GitHub Desktop.
Save rdp/b25a0483c196c856c33a to your computer and use it in GitHub Desktop.
require 'java'
class A < javax.swing.JFrame
def initialize *args
super(*args)
end
end
A.new
@rdp
Copy link
Author

rdp commented Nov 25, 2014

ruby -v bad.rb
jruby 1.7.16 (1.9.3p392) 2014-09-25 575b395 on OpenJDK 64-Bit Server VM 1.7.0_55-b14 +jit [linux-amd64]
ArgumentError: Constructor invocation failed: null
initialize at bad.rb:6
(root) at bad.rb:10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment