Integrated: 8347562: javac crash due to type vars in permits clause

Hannes Greule hgreule at openjdk.org
Wed Jan 15 14:11:49 UTC 2025


On Mon, 13 Jan 2025 13:33:13 GMT, Hannes Greule <hgreule at openjdk.org> wrote:

> This fix ignores erroneous types when attributing permits clauses. Before, multiple erroneous types would lead to an exception in the duplication check. Additionally, such types would cause package mismatch errors. As javac already reports errors before, such an additional error is more confusing than helpful.
> 
> Note that there are additional type var checks, but those only apply if the type vars come from a type other than the type with the permits clause, i.e. an enclosing class.

This pull request has now been integrated.

Changeset: 8193ba3d
Author:    Hannes Greule <hgreule at openjdk.org>
Committer: Julian Waters <jwaters at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/8193ba3de200cb77f778f58c59b8bb2175b53273
Stats:     17 lines in 2 files changed: 13 ins; 0 del; 4 mod

8347562: javac crash due to type vars in permits clause

Reviewed-by: vromero

-------------

PR: https://git.openjdk.org/jdk/pull/23069


More information about the compiler-dev mailing list