[ https://issues.apache.org/jira/browse/LUCENE-10185?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17430196#comment-17430196 ]
Robert Muir commented on LUCENE-10185: -------------------------------------- [~dweiss] in the ECJ at least these options are in different categories: {noformat} Compliance options: -1.3 use 1.3 compliance (-source 1.3 -target 1.1) -1.4 + use 1.4 compliance (-source 1.3 -target 1.2) -1.5 -5 -5.0 use 1.5 compliance (-source 1.5 -target 1.5) -1.6 -6 -6.0 use 1.6 compliance (-source 1.6 -target 1.6) -1.7 -7 -7.0 use 1.7 compliance (-source 1.7 -target 1.7) -1.8 -8 -8.0 use 1.8 compliance (-source 1.8 -target 1.8) -1.9 -9 -9.0 use 1.9 compliance (-source 1.9 -target 1.9) -10 -10.0 use 10 compliance (-source 10 -target 10) -11 -11.0 use 11 compliance (-source 11 -target 11) -12 -12.0 use 12 compliance (-source 12 -target 12) -13 -13.0 use 13 compliance (-source 13 -target 13) -14 -14.0 use 14 compliance (-source 14 -target 14) -15 -15.0 use 15 compliance (-source 15 -target 15) -source <version> set source level: 1.3 to 1.9, 10 to 15 (or 6, 6.0, etc) -target <version> set classfile target: 1.3 to 1.9, 10 to 15 (or 6, 6.0, etc) cldc1.1 can also be used to generate the StackMap attribute ... Module compilation options: These options are meaningful only in Java 9 environment or later. --module-source-path <directories separated by :> specify where to find source files for multiple modules -p --module-path <directories separated by :> specify where to find application modules --processor-module-path <directories separated by :> specify module path where annotation processors can be found --system <jdk> Override location of system modules --add-exports <module>/<package>=<other-module>(,<other-module>)* specify additional package exports clauses to the given modules --add-reads <module>=<other-module>(,<other-module>)* specify additional modules to be considered as required by given modules --add-modules <module>(,<module>)* specify the additional module names that should be resolved to be root modules --limit-modules <module>(,<module>)* specify the observable module names --release <release> compile for a specific VM version {noformat} > gradle check fails on java 17 (security manager deprecation) > ------------------------------------------------------------ > > Key: LUCENE-10185 > URL: https://issues.apache.org/jira/browse/LUCENE-10185 > Project: Lucene - Core > Issue Type: Task > Reporter: Robert Muir > Priority: Major > > I don't think we should add SuppressWarnings here, instead fix our ECJ linter > configuration. Seems like we should be specifying something similar to > "-release 11" and it shouldn't care about the new deprecations from java 17. > Or if we can't do that, maybe we should disable the "deprecated for removal" > check in ECJ entirely? > {noformat} > > Task :lucene:core:ecjLintMain > ---------- > 1. ERROR in > /home/rmuir/workspace/lucene/lucene/core/src/java/org/apache/lucene/util/NamedThreadFactory.java > (at line 42) > final SecurityManager s = System.getSecurityManager(); > ^^^^^^^^^^^^^^^ > The type SecurityManager has been deprecated since version 17 and marked for > removal > ---------- > 2. ERROR in > /home/rmuir/workspace/lucene/lucene/core/src/java/org/apache/lucene/util/NamedThreadFactory.java > (at line 42) > final SecurityManager s = System.getSecurityManager(); > ^^^^^^^^^^^^^^^^^^^^ > The method getSecurityManager() from the type System has been deprecated > since version 17 and marked for removal > ---------- > 3. ERROR in > /home/rmuir/workspace/lucene/lucene/core/src/java/org/apache/lucene/util/NamedThreadFactory.java > (at line 43) > group = (s != null) ? s.getThreadGroup() : > Thread.currentThread().getThreadGroup(); > ^^^^^^^^^^^^^^^^ > The method getThreadGroup() from the type SecurityManager has been deprecated > and marked for removal > ---------- > ---------- > 4. ERROR in > /home/rmuir/workspace/lucene/lucene/core/src/java/org/apache/lucene/util/RamUsageEstimator.java > (at line 23) > import java.security.AccessControlException; > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > The type AccessControlException has been deprecated since version 17 and > marked for removal > ---------- > 5. ERROR in > /home/rmuir/workspace/lucene/lucene/core/src/java/org/apache/lucene/util/RamUsageEstimator.java > (at line 24) > import java.security.AccessController; > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > The type AccessController has been deprecated since version 17 and marked for > removal > ---------- > 6. ERROR in > /home/rmuir/workspace/lucene/lucene/core/src/java/org/apache/lucene/util/RamUsageEstimator.java > (at line 574) > AccessController.doPrivileged((PrivilegedAction<Field[]>) > target::getDeclaredFields); > ^^^^^^^^^^^^^^^^ > The type AccessController has been deprecated since version 17 and marked for > removal > ---------- > 7. ERROR in > /home/rmuir/workspace/lucene/lucene/core/src/java/org/apache/lucene/util/RamUsageEstimator.java > (at line 574) > AccessController.doPrivileged((PrivilegedAction<Field[]>) > target::getDeclaredFields); > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > The method doPrivileged(PrivilegedAction<Field[]>) from the type > AccessController has been deprecated and marked for removal > ---------- > 8. ERROR in > /home/rmuir/workspace/lucene/lucene/core/src/java/org/apache/lucene/util/RamUsageEstimator.java > (at line 575) > } catch (AccessControlException e) { > ^^^^^^^^^^^^^^^^^^^^^^ > The type AccessControlException has been deprecated since version 17 and > marked for removal > ---------- > ---------- > 9. ERROR in > /home/rmuir/workspace/lucene/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java > (at line 33) > import java.security.AccessController; > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > The type AccessController has been deprecated since version 17 and marked for > removal > ---------- > 10. ERROR in > /home/rmuir/workspace/lucene/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java > (at line 337) > AccessController.doPrivileged((PrivilegedAction<Object>) > MMapDirectory::unmapHackImpl); > ^^^^^^^^^^^^^^^^ > The type AccessController has been deprecated since version 17 and marked for > removal > ---------- > 11. ERROR in > /home/rmuir/workspace/lucene/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java > (at line 337) > AccessController.doPrivileged((PrivilegedAction<Object>) > MMapDirectory::unmapHackImpl); > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > The method doPrivileged(PrivilegedAction<Object>) from the type > AccessController has been deprecated and marked for removal > ---------- > 12. ERROR in > /home/rmuir/workspace/lucene/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java > (at line 390) > AccessController.doPrivileged( > ^^^^^^^^^^^^^^^^ > The type AccessController has been deprecated since version 17 and marked for > removal > ---------- > 13. ERROR in > /home/rmuir/workspace/lucene/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java > (at line 390) > AccessController.doPrivileged( > (PrivilegedAction<Throwable>) > () -> { > try { > unmapper.invokeExact(buffer); > return null; > } catch (Throwable t) { > return t; > } > }); > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > The method doPrivileged(PrivilegedAction<Throwable>) from the type > AccessController has been deprecated and marked for removal > ---------- > 13 problems (13 errors) > > Task :lucene:core:ecjLintMain FAILED > > Task :lucene:expressions:ecjLintMain > > Task :lucene:codecs:renderJavadoc > > Task :lucene:facet:ecjLintMain > FAILURE: Build failed with an exception. > * What went wrong: > Execution failed for task ':lucene:core:ecjLintMain'. > > Process 'command '/usr/lib/jvm/java-17-openjdk/bin/java'' finished with > > non-zero exit value 255 > * Try: > Run with --stacktrace option to get the stack trace. Run with --info or > --debug option to get more log output. Run with --scan to get full insights. > * Get more help at https://help.gradle.org > BUILD FAILED in 1m 36s > 415 actionable tasks: 408 executed, 7 up-to-date > {noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org