You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running handlebars on Android as part of WireMock. Getting a NumberFormatException when Handlebars.Util tries to get the javaVersion(). The value is returned as a string "0.9" in Android.
static int javaVersion() {
String version = System.getProperty("java.specification.version").trim();
return Integer.parseInt(version.replace(VERSION_PREFIX, ""));
}
If for some reason that the Integer can't be parsed, we get a NumberFormat exception. If this is the case can a default version be provided/. Or have Value Resolver catch the exception and return the default list of MapValueResolver, JavaBeanValueResolver instead of crashing.