Skip to content

Commit a75e7b9

Browse files
committed
Merge branch '1.3' into 1.4
2 parents 0980d6f + a92075b commit a75e7b9

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/main/java/act/i18n/I18n.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,12 @@ public static String i18n(Class<?> bundleSpec, Enum<?> msgId) {
133133
}
134134

135135
public static String i18n(Locale locale, Class<?> bundleSpec, Enum<?> msgId) {
136+
return i18n(true, locale, bundleSpec.getName(), msgId);
137+
}
138+
139+
public static String i18n(Locale locale, String bundleName, Enum<?> msgId) {
136140
String key = S.newBuffer("enum.").append(msgId.getDeclaringClass().getSimpleName().toLowerCase()).append(".").append(msgId.name().toLowerCase()).toString();
137-
return _i18n(true, locale, bundleSpec.getName(), key);
141+
return _i18n(true, locale, bundleName, key);
138142
}
139143

140144
public static Map<String, Object> i18n(Class<? extends Enum> enumClass) {
@@ -180,7 +184,7 @@ public static Map<String, Object> i18n(Locale locale, String bundleName, Class<?
180184

181185
for (Enum<?> enumInstance : enumClass.getEnumConstants()) {
182186
String name = enumInstance.name();
183-
String val = _i18n(true, locale, bundleName, enumInstance.name());
187+
String val = i18n(locale, bundleName, enumInstance);
184188
if (outputProperties) {
185189
Map<String, Object> values = new HashMap<>();
186190
map.put(name, values);

src/main/java/act/job/_Job.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public void run() {
210210
app.checkUpdates(false);
211211
}
212212
doJob();
213-
} catch (RuntimeException e) {
213+
} catch (Throwable e) {
214214
boolean isFatal = FATAL_EXCEPTIONS.contains(e.getClass());
215215
Throwable cause = e;
216216
if (!isFatal) {

0 commit comments

Comments
 (0)