Skip to content

Commit f6ecea5

Browse files
committed
Re-add interface methods to non-API to restore backwards compatibility
1 parent 4f51d21 commit f6ecea5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/configure/ResourcesRegistry.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
*/
2525
package com.oracle.svm.core.configure;
2626

27+
import java.util.Collection;
2728
import java.util.Locale;
2829

2930
import org.graalvm.nativeimage.hosted.RuntimeResourceAccess;
@@ -57,4 +58,20 @@ default void addResourceBundles(String name) {
5758
}
5859

5960
void addClassBasedResourceBundle(ConfigurationCondition condition, String basename, String className);
61+
62+
/**
63+
* Although the interface-methods below are already defined in the super-interface
64+
* {@link RuntimeResourceSupport} they are also needed here for backwards compatibility.
65+
*/
66+
@Override
67+
void addResources(ConfigurationCondition condition, String pattern);
68+
69+
@Override
70+
void ignoreResources(ConfigurationCondition condition, String pattern);
71+
72+
@Override
73+
void addResourceBundles(ConfigurationCondition condition, String name);
74+
75+
@Override
76+
void addResourceBundles(ConfigurationCondition condition, String basename, Collection<Locale> locales);
6077
}

0 commit comments

Comments
 (0)