Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Java 17 #246

Closed
radcortez opened this issue Jul 1, 2022 · 10 comments
Closed

Support Java 17 #246

radcortez opened this issue Jul 1, 2022 · 10 comments

Comments

@radcortez
Copy link
Contributor

One of the main issues right now is with the WildflySecurityManager.

Maybe we should remove it altogether?

@radcortez
Copy link
Contributor Author

@chengfang are you aware of this?

@chengfang
Copy link
Contributor

Not sure if removing WildflySecurityManager will fully fix it. In WildFly, we use the workaround with jdk 17:

        <modular.jdk.args>
            --add-exports=java.desktop/sun.awt=ALL-UNNAMED
            --add-opens=java.base/java.io=ALL-UNNAMED
            --add-opens=java.base/java.lang=ALL-UNNAMED
            --add-opens=java.base/java.lang.invoke=ALL-UNNAMED
            --add-opens=java.base/java.lang.reflect=ALL-UNNAMED
            --add-opens=java.base/java.security=ALL-UNNAMED
            --add-opens=java.base/java.util=ALL-UNNAMED
            --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
            --add-opens=java.management/javax.management=ALL-UNNAMED
            --add-opens=java.naming/javax.naming=ALL-UNNAMED
        </modular.jdk.args>

https://github.com/wildfly/wildfly/blob/main/pom.xml#L169

It has not come up in JBeret till now. Is it possible to apply this workaround in quarkus-jberet?

@radcortez
Copy link
Contributor Author

Already did and it works as expected. Actually, it only required the security module, but we may have runtime code not being hit requiring additional stuff.

Are we fine with this, or do we want to eventually remove the need of opening these modules?

@chengfang
Copy link
Contributor

I think using the above opens opts is a sensible workaround. I'll investigate more if removing WildFlySecurityManager in jberet would make it easier.

@maxandersen
Copy link

Any add opens is not a sensible workaround. Its a working workaround but let’s not consider it sensible :)

@chengfang
Copy link
Contributor

It will be fixed via https://issues.redhat.com/browse/JBERET-570 and https://issues.redhat.com/browse/JBERET-572

@radcortez
Copy link
Contributor Author

Wondering if we should just remove the SecurityManager related code since it is deprecated in 17 and will be removed in the future.

@chengfang
Copy link
Contributor

SecurityManager is still used in WildFy, EAP and many user apps, so will be preserved in jberet for now.

@jamezp
Copy link
Contributor

jamezp commented Jul 14, 2022

+1 the security manager related stuff cannot be removed. In some environments the security manager is mandated. The spec itself even uses it.

@chengfang
Copy link
Contributor

FYI, jberet 1.4.8.Final is released on 2022-07-27, which contains the fix for this issue, along with other improvements.
https://github.com/jberet/jsr352/releases/tag/1.4.8.Final

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants