jrubyfx 1.2.0-java → 2.0.0-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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