Skip to content

Commit

Permalink
fix OSGi problem in AbstractCalendarValidatorFacto
Browse files Browse the repository at this point in the history
set classloader explicitly in AbstractCalendarValidatorFactory to avoid issues with OSGi.

Similar workaround to f89a263
Should fix #143
  • Loading branch information
t-h-e committed Apr 15, 2019
1 parent 7ac4bd1 commit 4402bc8
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -9,7 +9,7 @@ public abstract class AbstractCalendarValidatorFactory {

private static CalendarValidatorFactory instance;
static {
instance = ServiceLoader.load(CalendarValidatorFactory.class).iterator().next();
instance = ServiceLoader.load(CalendarValidatorFactory.class, DefaultCalendarValidatorFactory.class.getClassLoader()).iterator().next();
}

public static CalendarValidatorFactory getInstance() {
Expand Down

0 comments on commit 4402bc8

Please sign in to comment.