diff options
author | chibash <chiba@javassist.org> | 2016-02-23 19:22:13 +0900 |
---|---|---|
committer | chibash <chiba@javassist.org> | 2016-02-23 19:22:13 +0900 |
commit | d2d00601aa273adc4ceb47cc449fada0d35cb893 (patch) | |
tree | 208fe176ac144aace2a97f4add6d3a3a4e563663 /src/test/test5 | |
parent | 949def744d8a9c7e4edec31a24b00651ad1fada3 (diff) | |
download | javassist-d2d00601aa273adc4ceb47cc449fada0d35cb893.tar.gz javassist-d2d00601aa273adc4ceb47cc449fada0d35cb893.zip |
modifies the implementation of that invokes an interface default method
Diffstat (limited to 'src/test/test5')
-rw-r--r-- | src/test/test5/ProceedDefault.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/test5/ProceedDefault.java b/src/test/test5/ProceedDefault.java new file mode 100644 index 00000000..18e2ee18 --- /dev/null +++ b/src/test/test5/ProceedDefault.java @@ -0,0 +1,13 @@ +package test5; + +interface ProceedDefaultI { + default int foo() { return 13; } +} + +public class ProceedDefault implements ProceedDefaultI { + public int run() { return bar(); } + public int foo() { return 1700; } + public int bar() { + return foo() + ProceedDefaultI.super.foo(); + } +} |