[
https://issues.apache.org/jira/browse/WW-5272?focusedWorklogId=836093&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-836093
]
ASF GitHub Bot logged work on WW-5272:
--------------------------------------
Author: ASF GitHub Bot
Created on: 29/Dec/22 10:00
Start Date: 29/Dec/22 10:00
Worklog Time Spent: 10m
Work Description: sonarcloud[bot] commented on PR #649:
URL: https://github.com/apache/struts/pull/649#issuecomment-1367202782
Kudos, SonarCloud Quality Gate passed! [](https://sonarcloud.io/dashboard?id=apache_struts&pullRequest=649)
[](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=649&resolved=false&types=BUG)
[](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=649&resolved=false&types=BUG)
[0
Bugs](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=649&resolved=false&types=BUG)
[](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=649&resolved=false&types=VULNERABILITY)
[](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=649&resolved=false&types=VULNERABILITY)
[0
Vulnerabilities](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=649&resolved=false&types=VULNERABILITY)
[](https://sonarcloud.io/project/security_hotspots?id=apache_struts&pullRequest=649&resolved=false&types=SECURITY_HOTSPOT)
[](https://sonarcloud.io/project/security_hotspots?id=apache_struts&pullRequest=649&resolved=false&types=SECURITY_HOTSPOT)
[0 Security
Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_struts&pullRequest=649&resolved=false&types=SECURITY_HOTSPOT)
[](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=649&resolved=false&types=CODE_SMELL)
[](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=649&resolved=false&types=CODE_SMELL)
[0 Code
Smells](https://sonarcloud.io/project/issues?id=apache_struts&pullRequest=649&resolved=false&types=CODE_SMELL)
[](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=649&metric=new_coverage&view=list)
[100.0%
Coverage](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=649&metric=new_coverage&view=list)
[](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=649&metric=new_duplicated_lines_density&view=list)
[0.0%
Duplication](https://sonarcloud.io/component_measures?id=apache_struts&pullRequest=649&metric=new_duplicated_lines_density&view=list)
Issue Time Tracking
-------------------
Worklog Id: (was: 836093)
Time Spent: 0.5h (was: 20m)
> java.lang.UnsupportedOperationException in the Time component
> -------------------------------------------------------------
>
> Key: WW-5272
> URL: https://issues.apache.org/jira/browse/WW-5272
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 6.0.3
> Reporter: Massimiliano Del Matto
> Priority: Major
> Fix For: 6.2.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> We are facing a java.lang.UnsupportedOperationException on some java.sql.Time
> fields in our frontend after migrating from 2.5.26 to 6.0.3.
> Error 12/22/2022 09:52:20:122 Caused by:
> java.lang.UnsupportedOperationException
> Error 12/22/2022 09:52:20:122 at java.sql.Time.toInstant(Time.java:291)
> Error 12/22/2022 09:52:20:122 at
> org.apache.struts2.components.Date.end(Date.java:299)
> Error 12/22/2022 09:52:20:122 at
> org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:40)
> Error 12/22/2022 09:52:20:122 at
> JEE_jsp_pages_ReadTicketGoing_1671640129851._jspx_method_s_date_2(JEE_jsp_pages_ReadTicketGoing_1671640129851.java:408)
> Error 12/22/2022 09:52:20:122 at
> JEE_jsp_pages_ReadTicketGoing_1671640129851._jspx_method_s_form_0(JEE_jsp_pages_ReadTicketGoing_1671640129851.java:1950)
> Error 12/22/2022 09:52:20:122 at
> JEE_jsp_pages_ReadTicketGoing_1671640129851._jspService(JEE_jsp_pages_ReadTicketGoing_1671640129851.java:60)
> ...
>
> At line 299 in Date.java there is no code related to java.sql.Time
> [https://github.com/apache/struts/blob/STRUTS_6_0_3/core/src/main/java/org/apache/struts2/components/Date.java#L299]
>
> java.sql.Time extends java.util.Date so when dateObject is java.sql.Time is
> treated like an instanceof java.util.Date and toInstant() throws the
> UnsupportedOperationException.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
