jrubyfx 1.2.0-java → 2.0.0-java

Sign up to get free protection for your applications and to get access to all the features.
data/lib/jrubyfx/dsl.rb CHANGED
@@ -242,9 +242,12 @@ module JRubyFX
242
242
  next if defs == "" || defs == nil
243
243
  # TODO: do we need to include the dsl? is this the fastest way to do it?
244
244
  outf<< <<HERDOC
245
+ begin
245
246
  class #{clz}
246
247
  include JRubyFX::DSL
247
248
  #{defs}end
249
+ rescue NameError # ignore, different JDK version likely
250
+ end
248
251
  HERDOC
249
252
  end
250
253
  end