You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2019/06/25 20:54:00 UTC

[jira] [Commented] (WICKET-6678) Instant : Unsupported field: YearOfEra when cookieUtils.cookieToDebugString() is called

    [ https://issues.apache.org/jira/browse/WICKET-6678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16872703#comment-16872703 ] 

ASF subversion and git services commented on WICKET-6678:
---------------------------------------------------------

Commit 20c5e057ac9326b20ad5fdaddc46c72e5c3d9141 in wicket's branch refs/heads/master from Martin Tzvetanov Grigorov
[ https://gitbox.apache.org/repos/asf?p=wicket.git;h=20c5e05 ]

WICKET-6678 Instant : Unsupported field: YearOfEra when cookieUtils.cookieToDebugString() is called

Rename constants to follow Java naming conventions.
Delete a constant introduced in Wicket 9.0.0-M2 that is used only in a debug log in CookieUtils. There is no need of this special date format for a log message.


> Instant : Unsupported field: YearOfEra when cookieUtils.cookieToDebugString() is called
> ---------------------------------------------------------------------------------------
>
>                 Key: WICKET-6678
>                 URL: https://issues.apache.org/jira/browse/WICKET-6678
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 9.0.0-M2
>            Reporter: Francois
>            Priority: Minor
>
> Calling cookieUtils.save(xxx) with log.isDebugEnabled() = true produce this exception
> java.time.temporal.UnsupportedTemporalTypeException: Unsupported field: YearOfEra
>  at java.base/java.time.Instant.getLong(Instant.java:602)
>  at java.base/java.time.format.DateTimePrintContext.getValue(DateTimePrintContext.java:308)
>  at java.base/java.time.format.DateTimeFormatterBuilder$NumberPrinterParser.format(DateTimeFormatterBuilder.java:2696)
>  at java.base/java.time.format.DateTimeFormatterBuilder$CompositePrinterParser.format(DateTimeFormatterBuilder.java:2335)
>  at java.base/java.time.format.DateTimeFormatter.formatTo(DateTimeFormatter.java:1843)
>  at java.base/java.time.format.DateTimeFormatter.format(DateTimeFormatter.java:1817)
>  at org.apache.wicket.util.cookies.CookieUtils.cookieToDebugString(CookieUtils.java:373)
>  at org.apache.wicket.util.cookies.CookieUtils.save(CookieUtils.java:298)
>  at org.apache.wicket.util.cookies.CookieUtils.save(CookieUtils.java:166)
>  
> Instants.localDateFormatter uses an incompatible pattern for Instant.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)