Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update checkstyle to support Java17 enhanced instanceof #422

Merged
merged 1 commit into from
Oct 14, 2022

Conversation

timyates
Copy link
Contributor

I tried versions after this, but then I started seeing

Caused by: com.puppycrawl.tools.checkstyle.api.CheckstyleException: Property 'excludeScope' does not exist, please check the documentation
        at com.puppycrawl.tools.checkstyle.api.AutomaticBean.tryCopyProperty(AutomaticBean.java:227)
        at com.puppycrawl.tools.checkstyle.api.AutomaticBean.configure(AutomaticBean.java:194)
        at com.puppycrawl.tools.checkstyle.TreeWalker.setupChild(TreeWalker.java:123)

This was the latest version that supported enhanced instanceof, and still worked

See https://github.com/micronaut-projects/micronaut-session/pull/3/files#diff-7e845743b3275ae8a6a36524c32064120f1a55235372b55a5f8d2a6b685b919fR59

I tried versions after this, but then I started seeing

```
Caused by: com.puppycrawl.tools.checkstyle.api.CheckstyleException: Property 'excludeScope' does not exist, please check the documentation
        at com.puppycrawl.tools.checkstyle.api.AutomaticBean.tryCopyProperty(AutomaticBean.java:227)
        at com.puppycrawl.tools.checkstyle.api.AutomaticBean.configure(AutomaticBean.java:194)
        at com.puppycrawl.tools.checkstyle.TreeWalker.setupChild(TreeWalker.java:123)
```

This was the latest version that supported enhanced instanceof, and still worked

See https://github.com/micronaut-projects/micronaut-session/pull/3/files#diff-7e845743b3275ae8a6a36524c32064120f1a55235372b55a5f8d2a6b685b919fR59
@timyates timyates added this to the 6.0.1 milestone Oct 14, 2022
@timyates timyates requested a review from melix October 14, 2022 14:08
@timyates timyates self-assigned this Oct 14, 2022
@melix melix merged commit 950eb5e into master Oct 14, 2022
@melix melix deleted the checkstyle-upgrade branch October 14, 2022 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants