We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
current:
try { return Class.forName(className); } catch (ClassNotFoundException e) { throw new NoClassDefFoundError(e.getMessage()); }
and it should be:
try { return Class.forName(className, false, CurrentClass.getClass().getClassLoader()); } catch (ClassNotFoundException e) { throw new NoClassDefFoundError(e.getMessage()); }
This change breaks test.jdo.general "org.datanucleus.tests.metadata.AnnotationsPersistentInterfacesTest". Change rolled back
The text was updated successfully, but these errors were encountered:
From java-doc of Class.forName of Java 11
Returns the Class object associated with the class or interface with the given string name. Invoking this method is equivalent to:
Class.forName(className, true, currentLoader)
where currentLoader denotes the defining class loader of the current class.
So, current implementation is correct. right?
Sorry, something went wrong.
No branches or pull requests
current:
and it should be:
This change breaks test.jdo.general "org.datanucleus.tests.metadata.AnnotationsPersistentInterfacesTest". Change rolled back
The text was updated successfully, but these errors were encountered: