You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.
This issue occurs when using a legacy formatting settings file that defines an older Java version for org.eclipse.jdt.core.compiler.codegen.targetPlatform, org.eclipse.jdt.core.compiler.compliance or org.eclipse.jdt.core.compiler.source.
It seems like the Java version number configured through Maven will still be used for the main parsing of the java files since most new Java syntax features are processed and formatted without problems. One case where this causes issues is when using _ in numeric literals (introduced in Java 7). Any such occurrence will cause the entire method containing the numeric literal to become misformatted (see #20).
This appears to be different than how things work in Eclipse where the Java version configured for the project seems to override the version in the formatter settings. One indication of this behaviour is the Java version settings are updated when exporting settings that have been imported from a file with older versions.
I would suggest that the the plugin either automatically overrides those settings based on the Maven configuration, or alternatively outputs a warning if the settings are not in sync.
The text was updated successfully, but these errors were encountered:
This issue occurs when using a legacy formatting settings file that defines an older Java version for
org.eclipse.jdt.core.compiler.codegen.targetPlatform
,org.eclipse.jdt.core.compiler.compliance
ororg.eclipse.jdt.core.compiler.source
.It seems like the Java version number configured through Maven will still be used for the main parsing of the java files since most new Java syntax features are processed and formatted without problems. One case where this causes issues is when using
_
in numeric literals (introduced in Java 7). Any such occurrence will cause the entire method containing the numeric literal to become misformatted (see #20).This appears to be different than how things work in Eclipse where the Java version configured for the project seems to override the version in the formatter settings. One indication of this behaviour is the Java version settings are updated when exporting settings that have been imported from a file with older versions.
I would suggest that the the plugin either automatically overrides those settings based on the Maven configuration, or alternatively outputs a warning if the settings are not in sync.
The text was updated successfully, but these errors were encountered: