Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ public Description matchIdentifier(IdentifierTree tree, VisitorState state) {

@Override
public Description matchMemberSelect(MemberSelectTree tree, VisitorState state) {
if (tree.getIdentifier().equals(state.getNames()._class)) {
return NO_MATCH;
}
return match(tree, state);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ public void positive() {
class Test {
// BUG: Diagnostic contains: sun.misc.Unsafe
sun.misc.Unsafe u;

// BUG: Diagnostic contains: sun.misc.Unsafe
Object u2 = sun.misc.Unsafe
.class;
}
""")
.doTest();
Expand All @@ -50,6 +54,10 @@ public void positiveSource8() {
class Test {
// BUG: Diagnostic contains: sun.misc.Unsafe
sun.misc.Unsafe u;

// BUG: Diagnostic contains: sun.misc.Unsafe
Object u2 = sun.misc.Unsafe
.class;
}
""")
.setArgs("-source", "8", "-target", "8")
Expand Down
Loading