8344550: Compilation error of jpackage test JPackageStringBundle.java source

Reviewed-by: rriggs
This commit is contained in:
Alexey Semenyuk 2024-11-19 16:56:11 +00:00
parent 48223f7b9c
commit 7f672eb266

View File

@ -26,6 +26,7 @@ package jdk.jpackage.test;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.text.MessageFormat;
import static jdk.jpackage.internal.util.function.ExceptionBox.rethrowUnchecked;
public enum JPackageStringBundle {
@ -39,7 +40,7 @@ public enum JPackageStringBundle {
i18nClass_getString = i18nClass.getDeclaredMethod("getString", String.class);
i18nClass_getString.setAccessible(true);
} catch (ClassNotFoundException|NoSuchMethodException ex) {
throw Functional.rethrowUnchecked(ex);
throw rethrowUnchecked(ex);
}
}
@ -50,7 +51,7 @@ public enum JPackageStringBundle {
try {
return (String)i18nClass_getString.invoke(i18nClass, key);
} catch (IllegalAccessException|InvocationTargetException ex) {
throw Functional.rethrowUnchecked(ex);
throw rethrowUnchecked(ex);
}
}