antlr / antlr/stringtemplate4

Test failure: ClassCastException In DateRenderer

Open
#288 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1k
Forks
234
PR merge metrics
No merged PRs in 30d

Description

for this toString method in picture below
[
![image](https://user-images.githubusercontent.com/44200574/137448733-782aa23d-875b-48ed-b742-d006881dfa59.png)
](url)

when the type of first parameter is not Calendar or Date, there will be ClassCastException;
So when cast to Date, should add
```
if (value intanceof Date)
```
![image-20211013125710012](https://gitee.com/miaomiao_wang/pic_bed/raw/master/202110131257077.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.