[DOMA-298] [Core] カスタム関数で型パラメータを使うと実行時エラーになることがある問題を解決しました Created: 2013-09-05  Updated: 2013-09-19  Resolved: 2013-09-19

Status: Closed
Project: Doma
Component/s: Core
Affects Version/s: None
Fix Version/s: 1.34.0

Type: Bug Priority: Major
Reporter: taedium Assignee: taedium
Resolution: Fixed Votes: 0
Labels: None


 Description   

https://twitter.com/shinsukeoda/status/375497786432573440

パラメータの型がObjectで引数の型がインタフェースの場合に発生することがわかった。型パラメータは実行時にはObjectとして解釈されるため以下のケースで現象が再現する。

<T> boolean isNullOrEmpty(T value)

Generated at Sat Apr 20 14:19:49 JST 2024 using Jira 9.15.0#9150000-sha1:9ead8528714127d8cfabf2446010d7e62c0a195c.