Svyatoslav Scherbina
cf581738c3
Native: improve ClassCastException message for local classes
...
Previously it was like "null cannot be cast to MyObject" or
"MyObject cannot be cast to null", because `KClass.qualifiedName` is
`null` for local classes (including anonymous ones).
Use `KClass.toString()` instead, for both object actual dynamic type
and cast target type. This string representation is generally more
meaningful for such cases, and contains useful details for local
classes.
2022-03-28 08:21:55 +00:00
..
2022-02-18 08:50:25 +00:00
2022-03-24 11:38:43 +00:00
2021-12-21 21:31:44 +00:00
2022-02-15 08:11:17 +01:00
2022-03-23 21:13:33 +00:00
2022-03-18 12:28:28 +01:00
2021-12-16 21:48:19 +03:00
2021-12-16 21:48:23 +03:00
2022-02-14 13:08:50 +03:00
2022-02-14 21:21:57 +01:00
2021-12-16 21:48:23 +03:00
2022-03-14 20:08:14 +03:00
2022-03-28 08:21:55 +00:00
2022-03-24 11:46:00 +00:00
2022-03-10 09:01:58 +00:00
2022-03-11 15:36:05 +03:00
2021-12-27 16:23:13 +03:00
2022-03-23 21:13:33 +00:00
2022-03-14 20:08:14 +03:00
2022-03-24 11:38:44 +00:00
2021-12-16 21:48:23 +03:00
2022-03-14 17:53:55 +09:00
2021-12-16 21:48:23 +03:00
2021-12-16 21:48:23 +03:00
2022-02-07 15:01:24 +01:00
2022-03-24 09:28:28 +00:00
2022-03-23 21:13:33 +00:00
2022-03-14 17:53:55 +09:00
2022-03-24 11:38:43 +00:00
2022-02-25 23:08:26 +03:00
2022-02-09 19:35:54 +03:00
2022-03-28 08:21:55 +00:00
2022-03-23 21:13:33 +00:00
2021-12-16 21:48:23 +03:00
2022-03-23 21:13:33 +00:00
2022-03-28 08:21:55 +00:00
2022-02-18 17:44:40 +03:00
2021-12-16 21:48:23 +03:00
2022-02-16 18:41:50 +03:00
2022-03-28 08:21:55 +00:00
2021-12-16 21:48:24 +03:00
2022-03-23 21:13:33 +00:00
2022-03-24 09:28:28 +00:00
2021-12-16 21:48:19 +03:00
2022-01-25 16:59:27 +00:00
2022-03-11 15:09:38 +00:00
2022-02-15 11:48:54 +03:00
2021-12-16 21:48:23 +03:00