Skip to content

Commit 1c24d0a

Browse files
committed
replacement for fillInStackTrace()
1 parent 4ebda5e commit 1c24d0a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/de/inetsoftware/jwebassembly/api/java/lang/ReplacementForThrowable.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019 Volker Berlin (i-net software)
2+
* Copyright 2020 Volker Berlin (i-net software)
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -31,4 +31,12 @@ class ReplacementForThrowable {
3131
ReplacementForThrowable() {
3232
// nothing
3333
}
34+
35+
/**
36+
* Replacement for fillInStackTrace()
37+
*/
38+
@Replace( "java/lang/Throwable.fillInStackTrace()Ljava/lang/Throwable;" )
39+
private static Throwable fillInStackTrace( Throwable this_ ) {
40+
return this_;
41+
}
3442
}

0 commit comments

Comments
 (0)