Skip to content

Commit

Permalink
8251116: test lworld-values/ValuesAsRefs.java failing
Browse files Browse the repository at this point in the history
  • Loading branch information
sadayapalam committed Aug 10, 2020
1 parent 448aaa0 commit a47a48d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Expand Up @@ -5260,7 +5260,7 @@ void attribClass(ClassSymbol c) throws CompletionFailure {
log.error(TreeInfo.diagnosticPositionFor(c, env.tree), Errors.NonSealedWithNoSealedSupertype(c));
}
}
} else {
} else if ((c.flags_field & Flags.COMPOUND) == 0) {
if (c.isLocal() && !c.isEnum()) {
log.error(TreeInfo.diagnosticPositionFor(c, env.tree), Errors.LocalClassesCantExtendSealed);
}
Expand Down
Expand Up @@ -23,6 +23,7 @@

/**
* @test
* @bug 8251116
* @summary Test that values code like a class - i.e are accepted in some places where only references used be, when suitable reference projection is used.
@compile ValuesAsRefs.java
* @run main/othervm ValuesAsRefs
Expand Down

0 comments on commit a47a48d

Please sign in to comment.