Coder Social home page Coder Social logo

Support Java 17 about jsr352 HOT 10 CLOSED

jberet avatar jberet commented on August 16, 2024
Support Java 17

from jsr352.

Comments (10)

chengfang avatar chengfang commented on August 16, 2024 1

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

from jsr352.

chengfang avatar chengfang commented on August 16, 2024 1

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

from jsr352.

chengfang avatar chengfang commented on August 16, 2024 1

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

from jsr352.

radcortez avatar radcortez commented on August 16, 2024

@chengfang are you aware of this?

from jsr352.

chengfang avatar chengfang commented on August 16, 2024

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?

from jsr352.

radcortez avatar radcortez commented on August 16, 2024

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?

from jsr352.

maxandersen avatar maxandersen commented on August 16, 2024

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

from jsr352.

radcortez avatar radcortez commented on August 16, 2024

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

from jsr352.

chengfang avatar chengfang commented on August 16, 2024

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

from jsr352.

jamezp avatar jamezp commented on August 16, 2024

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

from jsr352.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.