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

ontent:WARNING: An illegal reflective access operation has occurred #243

Open
wzhjqeds opened this issue Dec 16, 2020 · 0 comments
Open

Comments

@wzhjqeds
Copy link

 public static void main(String[] args) {
        Unifiedorder unifiedorder = new Unifiedorder();
        unifiedorder.setSign("a");
        String unifiedorderXML = XMLConverUtil.convertToXML(unifiedorder);
        System.out.println(unifiedorderXML);
    }

环境:java14,以上代码执行会报警告:

content:WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.sun.xml.bind.v2.runtime.reflect.opt.Injector$1 (jar:file:/app/app.jar!/BOOT-INF/lib/jaxb-impl-2.1.12.jar!/) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
WARNING: Please consider reporting this to the maintainers of com.sun.xml.bind.v2.runtime.reflect.opt.Injector$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
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

1 participant