Comments (11)
Yes, this should be closed, we lost track of it
from checkstyle.
@rnveach you can put the definition of the release property into a profile which is only enabled on JDK9 or higher, see https://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-release.html
from checkstyle.
Can you share example of maven config to set this 3 items?
If update is simple, you might be able to make PR from web site editor.
from checkstyle.
Can you share example of maven config to set this 3 items?
@romani ,
Firstly, sorry for getting involved and please do correct me if I am wrong.
Based on my observations from PR #14397 ,
Any other mvn release used other than the current version is raising an API incompatibility error.
I had to find a workaround to keep the version intact and so added a new config to the plugin which did the trick.
I could elaborate a bit more on this if you insist. Please review PR #14397 to see the changes I have made.
from checkstyle.
@romani PR has been made for this issue. I showed it fixes the warning.
from checkstyle.
I can not find such warning at windows builds https://ci.appveyor.com/project/Checkstyle/checkstyle/builds/49208331, strange.
from checkstyle.
@romani See PR, CI only shows at JRE 17
the compiler knows that it's important to also check the API of the Java runtime, because it changes between Java versions.
from checkstyle.
Ok , so it is warming only for java version above 11 ?
from checkstyle.
I can only assume it is for java versions that do not match our POM.
from checkstyle.
@rnveach not sure how you typically process issues, should this one be closed already? the PR is merged, and since that is infrastructure only, there is nothing further to document.
from checkstyle.
9240ad3#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8R225
This line fails backport.
[INFO] �[1m--- �[0;32mcompiler:3.12.1:compile�[m �[1m(default-compile)�[m @ �[36mcheckstyle-backport-jre8�[0;1m ---�[m
[INFO] Recompiling the module because of �[1mchanged source code�[m.
[INFO] Compiling 448 source files with javac [debug release 1.8] to target\classes
...
Caused by: java.lang.IllegalArgumentException: invalid flag: --release
at com.sun.tools.javac.api.JavacTool.processOptions(JavacTool.java:206)
at com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:156)
at com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:107)
at com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:64)
at org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess(JavaxToolsCompiler.java:125)
... 30 more
This was fixed in JDK 9.
https://bugs.openjdk.org/browse/JDK-8167965
from checkstyle.
Related Issues (20)
- How to exclude java-Files that contain @Generated-Annotation? HOT 4
- Improve documentation - how to add usage of `var` to check `IllegalType`? HOT 6
- Column number in `DetailNode` should start with 1 HOT 16
- LITERAL_DEFAULT token support in RightCurlyCheck
- False Negative of ClassFanOutCheck with "new" Keyword HOT 6
- MagicNumberCheck NPE when ignoring field declarations HOT 11
- Parse exception for RAW string template (Java 21+) HOT 3
- IllegalType Not Working For Annotation Using FQN HOT 3
- Remove Support for String Template Syntax
- Re-enable and Monitor `YAMLSchemaValidation` inspection HOT 6
- Resolve `TailRecursion` inspection violations by replacing tail recursive calls HOT 4
- log() method incorrectly calculates the column number when Tabs are used HOT 8
- WhitespaceAround reports a violation when switch expression is passed as a method argument HOT 2
- Parameter name should be provided after @param tag HOT 1
- Please REMOVE most badges from the README HOT 5
- Please, add a small section to the README on how to install and use this tool HOT 5
- Test to ensure website checks/filters are in alphabetical order
- Fix performance test HOT 3
- build failure due to maven.plugin.json HOT 2
- Github generate site fails to generate links with anchors.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from checkstyle.