8266645: javac should not check for sealed supertypes in intersection types #3907
While trying to convert the hierarchy under package java.lang.constant to a sealed one we discovered that the compiler was issuing an error for intersection types when at least one of the types is sealed. The reason for this is that javac creates a synthetic anonymous class that extends and implements the classes and interfaces in the intersection type and then it attributes that synthetic class. The current implementation for sealed classes then issues an error for this anonymous class. The fix is to do not check for sealed supertypes for classes with an intersection type.
The text was updated successfully, but these errors were encountered:
@vicente-romero-oracle This change now passes all automated pre-integration checks.
After integration, the commit message for the final commit will be:
At the time when this comment was updated there had been 6 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the
@vicente-romero-oracle Since your change was applied there have been 22 commits pushed to the
Your commit was automatically rebased without conflicts.
Pushed as commit 946b0fe.