herseus created RANGER-4899:
-------------------------------

             Summary: 2.4.0 not support JDK21
                 Key: RANGER-4899
                 URL: https://issues.apache.org/jira/browse/RANGER-4899
             Project: Ranger
          Issue Type: Bug
          Components: Ranger
    Affects Versions: 2.4.0
         Environment: Linux 5.10
            Reporter: herseus


Compilation fails for Ranger 2.4.0 with JDK 21, the error messages:
{code:java}
// code placeholder
[2024/08/07 16:19:45.330 GMT+08:00] [ERROR] COMPILATION ERROR : 
[2024/08/07 16:19:45.330 GMT+08:00] [INFO] 
-------------------------------------------------------------
[2024/08/07 16:19:45.330 GMT+08:00] [ERROR] 
***//build/agents-common/src/main/java/org/apache/ranger/plugin/util/NashornScriptEngineCreator.java:[26,32]
 error: package jdk.nashorn.api.scripting does not exist
[2024/08/07 16:19:45.330 GMT+08:00] [ERROR] 
***//build/agents-common/src/main/java/org/apache/ranger/plugin/util/NashornScriptEngineCreator.java:[27,32]
 error: package jdk.nashorn.api.scripting does not exist
[2024/08/07 16:19:45.330 GMT+08:00] [ERROR] 
***//build/agents-common/src/main/java/org/apache/ranger/plugin/util/NashornScriptEngineCreator.java:[54,54]
 error: cannot find symbol
[2024/08/07 16:19:45.330 GMT+08:00] [ERROR]   symbol:   class ClassFilter
[2024/08/07 16:19:45.330 GMT+08:00]   location: class NashornScriptEngineCreator
[2024/08/07 16:19:45.330 GMT+08:00] 
***//build/agents-common/src/main/java/org/apache/ranger/plugin/util/NashornScriptEngineCreator.java:[44,12]
 error: cannot find symbol
[2024/08/07 16:19:45.330 GMT+08:00] [ERROR]   symbol:   class 
NashornScriptEngineFactory
[2024/08/07 16:19:45.330 GMT+08:00]   location: class NashornScriptEngineCreator
[2024/08/07 16:19:45.330 GMT+08:00] 
***//build/agents-common/src/main/java/org/apache/ranger/plugin/util/NashornScriptEngineCreator.java:[44,53]
 error: cannot find symbol
[2024/08/07 16:19:45.330 GMT+08:00] [ERROR]   symbol:   class 
NashornScriptEngineFactory
[2024/08/07 16:19:45.330 GMT+08:00]   location: class NashornScriptEngineCreator
[2024/08/07 16:19:45.331 GMT+08:00] 
***//build/agents-common/src/main/java/org/apache/ranger/plugin/util/NashornScriptEngineCreator.java:[60,8]
 error: method does not override or implement a method from a supertype {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to