Skip to content

Commit

Permalink
Update Java 22 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
snjeza committed Mar 26, 2024
1 parent 25d7a0b commit d44365f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
/**
* It's a Foo class
*/
public sealed interface Foo
permits Bar {
public class Foo {
public Foo() {
System.out.println();
super();
}
}
record Bar(String name) implements Foo { }
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,7 @@ public void testClassExtendFinalClass() throws Exception {
public void testAddSealedMissingClassModifierProposal() throws Exception {
Map<String, String> options22 = new HashMap<>();
JavaModelUtil.setComplianceOptions(options22, JavaCore.VERSION_22);
options22.put(JavaCore.COMPILER_PB_ENABLE_PREVIEW_FEATURES, JavaCore.ENABLED);
options22.put(JavaCore.COMPILER_PB_ENABLE_PREVIEW_FEATURES, JavaCore.IGNORE);
options22.put(JavaCore.COMPILER_PB_REPORT_PREVIEW_FEATURES, JavaCore.IGNORE);
fJProject.setOptions(options22);
IPackageFragment pack1 = fSourceFolder.createPackageFragment("test", false, null);
Expand Down

0 comments on commit d44365f

Please sign in to comment.