kt286 opened a new issue, #714:
URL: https://github.com/apache/fesod/issues/714

   ### Search before asking
   
   - [x] I searched in the [issues](https://github.com/apache/fesod/issues) and 
found nothing similar.
   
   
   ### Fesod version
   
   1.3.0
   
   ### JDK version
   
   17
   
   ### Operating system
   
   _No response_
   
   ### Steps To Reproduce
   
   Mybatis 3.5.17 之后的版本,date类型的数据返回的是 java.sql.Date 而不是 java.util.Date,此时在 
WriteCellData 方法中调用 dateValue.toInstant() 会报错
   
   ```java
       /**
        * Constructor for creating a WriteCellData object with a Date value.
        *
        * @param dateValue The Date value to be written to the cell.
        * @throws IllegalArgumentException If the date value is null.
        */
       public WriteCellData(Date dateValue) {
           super();
           if (dateValue == null) {
               throw new IllegalArgumentException("DateValue can not be null");
           }
           setType(CellDataTypeEnum.DATE);
           this.dateValue = LocalDateTime.ofInstant(dateValue.toInstant(), 
ZoneId.systemDefault());
       }
   ```
   
   参考链接 
   
https://github.com/mybatis/mybatis-3/commit/28af7e9d72a9e4952b6ec2f76d4ce12e030cb20a#diff-3100284b93f6e47f7e09229bac897dc14edbb2e162002f24e804113f49d8b6a6R44-R52
   
   <img width="656" height="198" alt="Image" 
src="https://github.com/user-attachments/assets/28e1e18a-cecf-47c1-9bc4-e6a4b94aece7";
 />
   
   ### Current Behavior
   
   throw new java.lang.UnsupportedOperationException();
   
   ### Expected Behavior
   
   正常
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to