Skip to content

Instantly share code, notes, and snippets.

@raphw
Last active September 2, 2015 08:55
Show Gist options
  • Save raphw/564b1f8b4ff67fda1029 to your computer and use it in GitHub Desktop.
Save raphw/564b1f8b4ff67fda1029 to your computer and use it in GitHub Desktop.
Package-private types in bridges.
package net.bytebuddy.bar;
public class Bar<T extends Baz> {
public void foo(T t) { }
}
package net.bytebuddy.bar;
class Baz { }
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)); }
}
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