Skip to content

Commit

Permalink
8325952: [lworld] tests refactoring, clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
Vicente Romero committed Feb 15, 2024
1 parent d79fc4d commit 916c8e3
Show file tree
Hide file tree
Showing 121 changed files with 142 additions and 6,469 deletions.
18 changes: 6 additions & 12 deletions src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Check.java
Expand Up @@ -1354,11 +1354,6 @@ else if ((sym.owner.flags_field & INTERFACE) != 0)
// concrete value classes are implicitly final
if ((flags & (ABSTRACT | INTERFACE | VALUE_CLASS)) == VALUE_CLASS) {
implicit |= FINAL;
if ((flags & NON_SEALED) != 0) {
// cant declare a final value class non-sealed
log.error(pos,
Errors.ModNotAllowedHere(asFlagSet(NON_SEALED)));
}
}

// TYPs can't be declared synchronized
Expand Down Expand Up @@ -1393,10 +1388,6 @@ else if ((sym.kind == TYP ||
ABSTRACT | INTERFACE,
FINAL | NATIVE | SYNCHRONIZED)
&&
checkDisjoint(pos, flags,
IDENTITY_TYPE,
VALUE_CLASS)
&&
checkDisjoint(pos, flags,
INTERFACE,
VALUE_CLASS)
Expand Down Expand Up @@ -1426,12 +1417,15 @@ && checkDisjoint(pos, flags,
&& checkDisjoint(pos, flags,
SEALED,
ANNOTATION)
&& checkDisjoint(pos, flags,
IDENTITY_TYPE,
&& checkDisjoint(pos, flags,
VALUE_CLASS,
ANNOTATION)
&& checkDisjoint(pos, flags,
VALUE_CLASS,
ANNOTATION) ) {
NON_SEALED)
&& checkDisjoint(pos, flags,
VALUE_CLASS,
INTERFACE) ) {
// skip
}
return flags & (mask | ~ExtendedStandardFlags) | implicit;
Expand Down
1 change: 0 additions & 1 deletion test/langtools/ProblemList.txt
Expand Up @@ -90,7 +90,6 @@ tools/javac/valhalla/primitive-classes/UnifiedPrimitiveClassBytecodeTest.java 83
tools/javac/valhalla/primitive-classes/ValueCreationTest.java 8323785 generic-all
tools/javac/valhalla/value-objects/ValueCreationTest.java 8323786 generic-all
tools/javac/valhalla/primitive-classes/PrimitiveClassesCompilationTests.java 8325322 generic-all
tools/javac/valhalla/value-objects/ValueObjectCompilationTests.java 8325322 generic-all

###########################################################################
#
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 916c8e3

Please sign in to comment.