Inline flag calculation through inline annotation
This commit is contained in:
@@ -28,7 +28,7 @@ public final class JvmAbi {
|
||||
* This constant is used to identify binary format (class file) versions
|
||||
* If you change class file metadata format and/or naming conventions, please increase this number
|
||||
*/
|
||||
public static final int VERSION = 11;
|
||||
public static final int VERSION = 12;
|
||||
|
||||
public static final String TRAIT_IMPL_CLASS_NAME = "$TImpl";
|
||||
public static final String TRAIT_IMPL_SUFFIX = "$" + TRAIT_IMPL_CLASS_NAME;
|
||||
|
||||
+2
-2
@@ -169,8 +169,8 @@ public final class JavaFunctionResolver {
|
||||
effectiveSignature.getValueParameters(),
|
||||
effectiveSignature.getReturnType(),
|
||||
Modality.convertFromFlags(method.isAbstract(), !method.isFinal()),
|
||||
method.getVisibility(),
|
||||
/*isInline = */ false
|
||||
method.getVisibility()
|
||||
/*TODO what if user annotate it with inline?*/
|
||||
);
|
||||
|
||||
if (record) {
|
||||
|
||||
+2
-4
@@ -161,8 +161,7 @@ public class SingleAbstractMethodUtils {
|
||||
Arrays.asList(parameter),
|
||||
returnType,
|
||||
Modality.FINAL,
|
||||
samInterface.getVisibility(),
|
||||
false
|
||||
samInterface.getVisibility()
|
||||
);
|
||||
|
||||
return result;
|
||||
@@ -198,8 +197,7 @@ public class SingleAbstractMethodUtils {
|
||||
valueParameters,
|
||||
returnType,
|
||||
Modality.FINAL,
|
||||
original.getVisibility(),
|
||||
false
|
||||
original.getVisibility()
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user