Description
AjaxShellDelegate will only compile (& run) under Java 6 because it uses a new method on String that was introduced in Java 6.
Line 92 calls String.isEmpty() when checking the contents of Locale.getCountry()
dojoConfig.put("locale", locale.getLanguage().toLowerCase()
+ ((locale.getCountry() != null && !locale.getCountry().isEmpty())
? "-" + locale.getCountry().toLowerCase()
: ""));
Changing the check to length() > 0 fixes the problem
dojoConfig.put("locale", locale.getLanguage().toLowerCase()
+ ((locale.getCountry() != null && locale.getCountry().length() > 0)
? "-" + locale.getCountry().toLowerCase()
: ""));