|
@@ -5,6 +5,7 @@ import org.objectweb.asm.Label;
|
5
|
5
|
import org.objectweb.asm.Type;
|
6
|
6
|
import org.openzen.zenscript.codemodel.FunctionParameter;
|
7
|
7
|
import org.openzen.zenscript.codemodel.HighLevelDefinition;
|
|
8
|
+import org.openzen.zenscript.codemodel.annotations.*;
|
8
|
9
|
import org.openzen.zenscript.codemodel.generic.TypeParameter;
|
9
|
10
|
import org.openzen.zenscript.codemodel.member.*;
|
10
|
11
|
import org.openzen.zenscript.codemodel.type.TypeID;
|
|
@@ -81,8 +82,14 @@ public class JavaExpansionMemberVisitor implements MemberVisitor<Void> {
|
81
|
82
|
public Void visitMethod(MethodMember member) {
|
82
|
83
|
final boolean isStatic = member.isStatic();
|
83
|
84
|
final JavaMethod method = context.getJavaMethod(member);
|
84
|
|
- if (!method.compile)
|
85
|
|
- return null;
|
|
85
|
+ if(!method.compile) {
|
|
86
|
+ return null;
|
|
87
|
+ }
|
|
88
|
+
|
|
89
|
+ if(member.body == null && member.hasTag(NativeTag.class)) {
|
|
90
|
+ //Is it an error that method.compile == true then?
|
|
91
|
+ return null;
|
|
92
|
+ }
|
86
|
93
|
|
87
|
94
|
final ArrayList<TypeParameter> typeParameters = new ArrayList<>();
|
88
|
95
|
expandedClass.extractTypeParameters(typeParameters);
|