[
https://issues.apache.org/jira/browse/FLINK-21106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17271520#comment-17271520
]
Aljoscha Krettek commented on FLINK-21106:
------------------------------------------
Side note: I'm just using the most recent IntelliJ plugin version and it's fine
for all of my code so far. For the rare case where more recent versions of the
plugin produce formatting that is incompatible with 1.7.5 our CI would catch it
and I can run {{mvn spotless:apply}} to fix it.
> google-java-format Intellij Plugin 1.7.0.5 causes
> UnsupportedOperationException in IntelliJ
> -------------------------------------------------------------------------------------------
>
> Key: FLINK-21106
> URL: https://issues.apache.org/jira/browse/FLINK-21106
> Project: Flink
> Issue Type: Bug
> Reporter: Matthias
> Priority: Minor
> Attachments: google-java-format-1.7-patched.zip
>
>
> There's a problem with {{google-java-format}} Intellij plugin version
> {{1.7.0.5}} that causes an {{UnsupportedOperationException}} when creating a
> new Java class file. Besides the exception, an error dialog pops up and the
> newly created file is not properly formatted. A simple reformat solves the
> issue.
> This problem is caused by a bug that got fixed in the {{google-java-format}}
> plugin's codebase in
> [45fb41a|https://github.com/google/google-java-format/commit/45fb41a7bac3dfe0726601ceb87d1c17bbf494ec].
> Unfortunately, this fix got released with the plugin version {{1.8.0.1}}
> which we cannot upgrade to due to our limitations on sticking to Java 8 for
> now (see FLINK-20803).
--
This message was sent by Atlassian Jira
(v8.3.4#803005)