Skip to content

Commit

Permalink
[GR-51149] Removed obsolete message.
Browse files Browse the repository at this point in the history
  • Loading branch information
tzezula committed Apr 23, 2024
1 parent d719a13 commit 8acba5c
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions sdk/src/org.graalvm.polyglot/src/org/graalvm/polyglot/Engine.java
Original file line number Diff line number Diff line change
Expand Up @@ -2132,18 +2132,8 @@ public boolean copyResources(Path targetFolder, String... components) {
}

private static RuntimeException noPolyglotImplementationFound() {
if (PolyglotInvalid.class.getModule().isNamed()) {
return new IllegalStateException(
"No language and polyglot implementation was found on the module-path. " +
"Make sure at last one language is added to the module-path. ");
} else {
return new IllegalStateException(
"No language and polyglot implementation was found on the class-path. " +
"Make sure at last one language is added on the class-path. " +
"If you put a language on the class-path and you encounter this error then there could be a problem with isolated class loading. " +
"Use -Dpolyglotimpl.TraceClassPathIsolation=true to debug class loader islation problems. " +
"For best performance it is recommended to use polyglot from the module-path instead of the class-path.");
}
return new IllegalStateException("No language and polyglot implementation was found on the module-path. " +
"Make sure at last one language is added to the module-path. ");
}

@Override
Expand Down

0 comments on commit 8acba5c

Please sign in to comment.