Support generic array creation for reified inlined
This commit is contained in:
committed by
Andrey Breslav
parent
060c30746f
commit
4a66ab3627
@@ -102,6 +102,14 @@ public class Intrinsics {
|
||||
"throwParameterIsNullException"
|
||||
));
|
||||
|
||||
private static void throwUndefinedForReified() {
|
||||
throw new UnsupportedOperationException("You should not use functions with reified parameter without inline");
|
||||
}
|
||||
|
||||
public static void reifyNewArray(int parameterTypeIndex) {
|
||||
throwUndefinedForReified();
|
||||
}
|
||||
|
||||
public static <T extends Throwable> T sanitizeStackTrace(T throwable) {
|
||||
StackTraceElement[] stackTrace = throwable.getStackTrace();
|
||||
ArrayList<StackTraceElement> list = new ArrayList<StackTraceElement>(stackTrace.length);
|
||||
|
||||
Reference in New Issue
Block a user