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/ValuesAsRefs.java failing. #138

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
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.
@compile ValuesAsRefs.java
* @run main/othervm ValuesAsRefs