GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |
GeezerVison is showing github.com — [java] Resolve switch patterns before constructor inference by CEXpp · Pull Request #7397 · pmd/pmd Conversation
Contributor
Describe the PRWhen a Java 21 switch pattern variable is passed directly to an anonymous class constructor, PMD can infer the constructor arguments before visiting the pattern and report a processing error on valid Java. Visit the label’s patterns before the guard or branch can trigger inference. The three regression cases cover the anonymous constructor, an ordinary constructor, and an anonymous constructor reached through a local variable. Related issuesReady?
Validation: AI disclosure: GPT-6.2 Sol in Codex prepared and tested this change. ChatGPT verified that the submitted files match the tested Git blobs.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
Compared to main: (comment created at 2026-11-27 16:05:53+00:00 for d1bfac5) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[java] PMD 7.29.0 fails to resolve a switch pattern variable passed to an anonymous class constructor
There was an error while loading. Please reload this page.