ConstantExpressionVisitor: for class access expression return the operand type

Before for String.class the "Class<String> type was returned (instead of simply "String" type). This was usually fine, but for int.class and Integer.class the same "Class<Integer>" type was returned, despite the constants are different.
This commit is contained in:
Tagir Valeev
2017-09-28 13:15:14 +07:00
parent cac7576b37
commit 389e6a828d
5 changed files with 124 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
// "Remove redundant parameter" "false"
@interface Anno {
Class foo() default void.class;
}
@Anno(foo = Vo<caret>id.class)
class Foo {
}