aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/test4/InvokeDynCopySrc.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/test4/InvokeDynCopySrc.java')
-rw-r--r--src/test/test4/InvokeDynCopySrc.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/test4/InvokeDynCopySrc.java b/src/test/test4/InvokeDynCopySrc.java
new file mode 100644
index 00000000..83291f7b
--- /dev/null
+++ b/src/test/test4/InvokeDynCopySrc.java
@@ -0,0 +1,17 @@
+package test4;
+
+import java.util.function.Supplier;
+
+public class InvokeDynCopySrc {
+ public InvokeDynCopySrc() {
+ System.out.println("source class:" + getString());
+ }
+
+ public String getString() {
+ Supplier<String> stringSupplier = () -> {
+ return "hello";
+ };
+
+ return stringSupplier.get();
+ }
+}