Last active
September 2, 2015 08:55
-
-
Save raphw/564b1f8b4ff67fda1029 to your computer and use it in GitHub Desktop.
Package-private types in bridges.
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
package net.bytebuddy.bar; | |
public class Bar<T extends Baz> { | |
public void foo(T t) { } | |
} |
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
package net.bytebuddy.bar; | |
class Baz { } |
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
package net.bytebuddy.foo; | |
import net.bytebuddy.bar.Bar; | |
import net.bytebuddy.bar.Qux; | |
public class Foo extends Bar<Qux> { | |
public void foo(Qux t) { } | |
// public synthetic bridge void foo(Baz t) { foo((Qux) t)); } | |
} |
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
package net.bytebuddy.bar; | |
public class Qux extends Baz { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment