publicclass B6791927 { publicstaticfinalvoid main(String[] aaParamters) throws Exception {
Locale reservedLocale = Locale.getDefault(); try { // Forces a non US locale
Locale.setDefault(Locale.FRANCE);
List<HttpCookie> cookies = HttpCookie.parse("set-cookie:" + " CUSTOMER=WILE_E_COYOTE;" + " expires=Sat, 09-Nov-2041 23:12:40 GMT"); if (cookies == null || cookies.isEmpty()) { thrownew RuntimeException("No cookie found");
} for (HttpCookie c : cookies) { if (c.getMaxAge() == 0) { thrownew RuntimeException( "Expiration date shouldn't be 0");
}
}
} finally { // restore the reserved locale
Locale.setDefault(reservedLocale);
}
}
}
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.13Bemerkung:
(vorverarbeitet am 2026-06-10)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.