-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[build] Allow JDK8 build by making traces utils compatible (#1483)
(including the StackWalker usage, as a stub)
- Loading branch information
1 parent
ec9dcdb
commit 41b50e4
Showing
4 changed files
with
125 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
101 changes: 0 additions & 101 deletions
101
reactor-core/src/main/java9/reactor/core/publisher/StackWalkerCallSiteSupplierFactory.java
This file was deleted.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
reactor-core/src/main/java9stubs/java/lang/StackWalker.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package java.lang; | ||
|
||
import java.util.function.Function; | ||
import java.util.stream.Stream; | ||
|
||
import sun.reflect.CallerSensitive; | ||
|
||
/** | ||
* Stub for the Java 9 compatibility when compiled with JDK 8. | ||
*/ | ||
public class StackWalker { | ||
|
||
public static StackWalker getInstance() { | ||
return null; | ||
} | ||
|
||
@CallerSensitive | ||
public <T> T walk(Function<? super Stream<StackFrame>, ? extends T> function) { | ||
return null; | ||
} | ||
|
||
public interface StackFrame { | ||
String getClassName(); | ||
|
||
String getMethodName(); | ||
|
||
boolean isNativeMethod(); | ||
} | ||
|
||
} |