You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
646 B

--- jLow2High.ml 2016-11-01 08:10:40.000000000 -0700
+++ jLow2High.ml 2017-08-30 14:54:09.000000000 -0700
@@ -630,9 +630,9 @@
Java (lazy (low2high_code consts bootstrap_methods (Lazy.force c)))
| [] when is_native -> Native
| [] ->
- raise
- (Class_structure_error
- "A method not declared as Native, nor Abstract has been found without code.")
+ (* although this will never happen in bytecode generated by Javac, some bytecode generators
+ create empty method bodies without bothering to mark them native *)
+ Native
| [_] ->
raise
(Class_structure_error)