#2 JWNL: 213 Locale call

closed
nobody
None
5
2002-07-29
2002-01-11
Anonymous
No

The code in JWNL.java:

private static Locale getLocale(String language,
String country) {
if (language == null) {
return Locale.getDefault();
} else if (country == null) {
return new Locale(language);
} else {
return new Locale(language, country);
}
}

returns a NoSuchMethodError when country==null. Check
out the java.util.Locale constructor in Java2.

Discussion

  • John Didion
    John Didion
    2002-07-29

    • status: open --> closed