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

Not catch “IllegalArgumentException” when check GraphvizJdkEngine #222

Open
ljr900723 opened this issue Sep 2, 2021 · 0 comments
Open

Comments

@ljr900723
Copy link

ljr900723 commented Sep 2, 2021

private static GraalJavascriptEngine tryGraal() {
    try {
        return new GraalJavascriptEngine();
    } catch (ExceptionInInitializerError | NoClassDefFoundError | IllegalStateException e) {
        return null;
    }
}

The "tryGraal" method does not catch "IllegalArgumentException", which would be thrown in "requirePublicLanguage" method in "PolyglotEngineImpl" class.

As a result, the export process would crash when there is no "js" runtime in target machine.

@ljr900723 ljr900723 reopened this Sep 6, 2021
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