Created
January 12, 2016 15:26
-
-
Save raphw/4a148485dd1baa34baec to your computer and use it in GitHub Desktop.
A receiver type is not resolved as a parameterized type.
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
public class Foo<T> { | |
void foo(Foo<@Bar T> this) {} | |
public static void main(String[] args) { | |
assert Foo.class.getDeclaredMethod("foo").getAnnotatedReceiverType() instanceof AnnotatedParameterizedType; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment