mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Maxim Thomas
15.32.2019 f118410bbfd7b246a6f69c3be11804fc82e09a42
opendj-config/src/main/java/org/forgerock/opendj/config/ManagedObjectDefinitionResource.java
@@ -99,10 +99,13 @@
            String baseName = prefix + "." + d.getClass().getName();
            String path = baseName.replace('.', '/') + ".properties";
            InputStream stream = ConfigurationFramework.class.getClassLoader().getResourceAsStream(path);
            if(stream == null) { //try target class class loader
               stream = d.getClass().getClassLoader().getResourceAsStream(path);
            }
            if (stream == null) {
                throw new MissingResourceException("Can't find resource " + path, baseName, "");
            }
            p = new Properties();
            try (InputStream is = new BufferedInputStream(stream)) {