Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions modules/core/src/main/java/com/illposed/osc/LibraryInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@ public final class LibraryInfo {

static {
final Set<Package> tmpUninterestingPkgs = new HashSet<>();
ClassLoader classLoader = LibraryInfo.class.getClassLoader();
tmpUninterestingPkgs.add(classLoader.getDefinedPackage("java.lang"));
tmpUninterestingPkgs.add(classLoader.getDefinedPackage("java.util"));
try {
tmpUninterestingPkgs.add(Class.forName("java.lang.Object").getPackage());
tmpUninterestingPkgs.add(Class.forName("java.util.List").getPackage());
} catch (ClassNotFoundException ignored) {
// java.lang and java.util should always be present and loaded
}
// NOTE We need to do it like this, because otherwise "java.awt" can not be found
// by this classes class-loader.
final Class<?> javaAwtColorClass = getAwtColor();
Expand Down