Permalink
Browse files

rescue + note around MethodHandle java import

  • Loading branch information...
1 parent 7beeb5a commit a556514025529db372bd030bcff4f459babff629 @baroquebobcat baroquebobcat committed May 13, 2011
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/bitescript/asm.rb
View
@@ -35,6 +35,12 @@ module ASM
java_import asm_package.signature.SignatureReader
java_import asm_package.signature.SignatureVisitor
java_import asm_package.signature.SignatureWriter
- java_import asm_package.MethodHandle
+
+ # MethodHandle was introduced in ASM 4.0, and is only available to
+ # JRuby > 1.6.1
+ begin
+ java_import asm_package.MethodHandle
+ rescue
+ end
end
end

0 comments on commit a556514

Please sign in to comment.