[java] Warn on JDK/OS arch mismatch when building the project

- Sends a sticky balloon notification on the first build with a JDK every session in case of arch mismatch (shown again after changing JDK)
- New checkbox in Build | Compiler | Java Compiler to disable warnings

#IDEA-343661 Fixed

GitOrigin-RevId: ac9b36b05403ac38acc7a55944850608f86d4e59
This commit is contained in:
Louis Vignier
2024-03-26 14:13:06 +01:00
committed by intellij-monorepo-bot
parent 4c6ac30a11
commit 9b9f155f70
9 changed files with 96 additions and 2 deletions

View File

@@ -1819,6 +1819,10 @@ notification.group.setup.sdk=JDK configured
notification.group.setup.external.annotations=Failed to load external annotations
notification.group.testintegration=Failed to generate tests for @TestDataPath
notification.group.legacy.library=Legacy library depends on IDE installation
notification.group.arch.checker=JDK and system architectures are different
arch.checker.notification.title=JDK can cause slow builds
arch.checker.notification.content=The JDK and system architectures do not match. Builds can be much slower as a consequence.
arch.checker.notification.project.structure=Configure JDK
inspection.io.stream.constructor.description='InputStream' and 'OutputStream' can be constructed using 'Files' methods
inspection.input.stream.constructor.message='InputStream' can be constructed using 'Files.newInputStream()'
inspection.output.stream.constructor.message='OutputStream' can be constructed using 'Files.newOutputStream()'