Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added more sorts for bridge methods to better reflect Java 8 properti…
…es and specific bridge methods. Fixed implementation accordingly and added further tests.
- Loading branch information
Rafael Winterhalter
committed
Jul 23, 2015
1 parent
adb17e0
commit 53f115f
Showing
11 changed files
with
122 additions
and
49 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
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
Binary file added
BIN
+596 Bytes
...ddy-dep/src/test/resources/net/bytebuddy/test/precompiled/ReturnTypeInterfaceBridge.class
Binary file not shown.
11 changes: 11 additions & 0 deletions
11
...uddy-dep/src/test/resources/net/bytebuddy/test/precompiled/ReturnTypeInterfaceBridge.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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,11 @@ | |||
package net.bytebuddy.test.precompiled; | |||
|
|||
public interface ReturnTypeInterfaceBridge extends ReturnTypeInterfaceBridgeBase { | |||
|
|||
String BAR = "bar"; | |||
|
|||
@Override | |||
default String foo() { | |||
return BAR; | |||
} | |||
} |
Binary file added
BIN
+438 Bytes
...dep/src/test/resources/net/bytebuddy/test/precompiled/ReturnTypeInterfaceBridgeBase.class
Binary file not shown.
10 changes: 10 additions & 0 deletions
10
...-dep/src/test/resources/net/bytebuddy/test/precompiled/ReturnTypeInterfaceBridgeBase.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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,10 @@ | |||
package net.bytebuddy.test.precompiled; | |||
|
|||
public interface ReturnTypeInterfaceBridgeBase { | |||
|
|||
String FOO = "foo"; | |||
|
|||
default Object foo() { | |||
return FOO; | |||
} | |||
} |
Binary file added
BIN
+799 Bytes
...y-dep/src/test/resources/net/bytebuddy/test/precompiled/TypeVariableInterfaceBridge.class
Binary file not shown.
11 changes: 11 additions & 0 deletions
11
...dy-dep/src/test/resources/net/bytebuddy/test/precompiled/TypeVariableInterfaceBridge.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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,11 @@ | |||
package net.bytebuddy.test.precompiled; | |||
|
|||
public interface TypeVariableInterfaceBridge extends TypeVariableInterfaceBridgeBase<String> { | |||
|
|||
String FOO = "foo"; | |||
|
|||
@Override | |||
default String foo(String s) { | |||
return FOO; | |||
} | |||
} |
Binary file added
BIN
+647 Bytes
...p/src/test/resources/net/bytebuddy/test/precompiled/TypeVariableInterfaceBridgeBase.class
Binary file not shown.
8 changes: 8 additions & 0 deletions
8
...ep/src/test/resources/net/bytebuddy/test/precompiled/TypeVariableInterfaceBridgeBase.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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,8 @@ | |||
package net.bytebuddy.test.precompiled; | |||
|
|||
public interface TypeVariableInterfaceBridgeBase<T> { | |||
|
|||
default T foo(T t) { | |||
return t; | |||
} | |||
} |