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

Fix validation error when using AppClassLoader in over JDK9 #714

Merged

Conversation

donggyu04
Copy link
Contributor

From JDK9 the application class loader is no longer an instance of java.net.URLClassLoader
Therefore in a certain environment(run on Intellij), It emits ClassCastException when validating script.

@donggyu04 donggyu04 force-pushed the bugfix/fix-validation-error-when-using-appclassloader branch from 9cf0812 to b64eea0 Compare December 23, 2020 13:00
@donggyu04 donggyu04 removed the wip label Dec 23, 2020
* @return converted object.
*/
@SuppressWarnings("unchecked")
public static <T> T cast(Object object) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@imbyungjun imbyungjun merged commit fc43aa5 into develop Dec 29, 2020
@imbyungjun imbyungjun deleted the bugfix/fix-validation-error-when-using-appclassloader branch December 29, 2020 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants