Skip to content

Commit

Permalink
Fix unittest ProxyClassLoaderNB11PackageAnnotationsTest
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasblaesing committed Nov 3, 2019
1 parent a46999d commit 0263353
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class PackageClassLoader extends ProxyClassLoader {
PackageClassLoader() {
super(new ClassLoader[0], false);
addCoveredPackages(Collections.singleton(TEST_PACKAGE));
definePackage(TEST_PACKAGE, null, null, null, null, null, null, null);
}

@Override
Expand Down Expand Up @@ -77,7 +78,7 @@ public String toString() {
}

}

final ProxyClassLoader cl = new PackageClassLoader();
final Class<? extends Annotation> annotClz = (Class<? extends Annotation>) cl.loadClass(TEST_PACKAGE + ".NB11PackageTestAnnotation");
final Package pkg = annotClz.getPackage();
Expand Down

0 comments on commit 0263353

Please sign in to comment.