Skip to content

Commit

Permalink
Use Class.forName instead of class loader
Browse files Browse the repository at this point in the history
Class loader seems to be null on the bootclasspath

Signed-off-by: Stefan Marr <git@stefan-marr.de>
  • Loading branch information
smarr committed Aug 18, 2017
1 parent 05ea3a3 commit a7409f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bd/settings/VmSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ private static Settings getSettings() {
}

try {
Class<?> clazz = VmSettings.class.getClassLoader().loadClass(className);
Class<?> clazz = Class.forName(className);
return (Settings) clazz.newInstance();
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException e) {
// Checkstyle: stop
Expand Down

0 comments on commit a7409f6

Please sign in to comment.