Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8251116: [lworld] test lworld-values/ failing. #138

wants to merge 1 commit into from
Changes from all commits
File filter
Filter by extension
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -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);
@@ -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.
* @run main/othervm ValuesAsRefs