rrader
12/24/2018, 1:35 PMIllegalArgumentException
with another exception? that will store property name and will be possible to get that property name and not to parse the error stringkarelpeeters
12/24/2018, 1:39 PMrrader
12/24/2018, 1:50 PMrrader
12/24/2018, 1:51 PMIllegalArgumentException
karelpeeters
12/24/2018, 1:55 PMrrader
12/24/2018, 1:57 PMkarelpeeters
12/24/2018, 3:19 PMgildor
12/25/2018, 2:19 AMrrader
12/26/2018, 7:54 AMrrader
12/26/2018, 7:55 AMgildor
12/26/2018, 8:35 AMAnd how will be if Kotlin team will allow to disable this checksYes, you right, this check already can be disabled using compiler flag
Why not just reuse this checks?Because it not intended to be reused
And why to limit library writersI don’t see any limitation.s You already has tools to solve this problem: kotlin-reflect and kotlin-metadata
rrader
12/26/2018, 9:43 AMrrader
12/26/2018, 9:43 AMrrader
12/26/2018, 9:44 AMBecause it not intended to be reusedwhy to not make to be reused, do you know some limitations?
gildor
12/26/2018, 9:47 AMWell, as you said we also should check the compiler flagsNo! You shouldn’t if you just check it yourself
rrader
12/26/2018, 9:48 AMgildor
12/26/2018, 9:50 AMrrader
12/26/2018, 9:51 AMgildor
12/26/2018, 9:52 AMrrader
12/26/2018, 10:00 AMgildor
12/26/2018, 10:03 AMgildor
12/26/2018, 10:04 AMrrader
12/26/2018, 10:05 AMrrader
12/26/2018, 10:05 AMgildor
12/26/2018, 10:06 AMgildor
12/26/2018, 10:06 AMgildor
12/26/2018, 10:06 AMgildor
12/26/2018, 10:06 AMneed to create a instance of class, and need to show what field failed
gildor
12/26/2018, 10:06 AMrrader
12/26/2018, 10:07 AMgildor
12/26/2018, 10:07 AMrrader
12/26/2018, 10:08 AMgildor
12/26/2018, 10:08 AMgildor
12/26/2018, 10:10 AMrrader
12/26/2018, 10:10 AMrrader
12/26/2018, 10:10 AMgildor
12/26/2018, 10:10 AMrrader
12/26/2018, 10:10 AMgildor
12/26/2018, 10:11 AMI want what nullability validation to be done by other tool, not kotlin, because kotlin fail on first parahow 3rd party tool can check nullability of Kotlin types?
rrader
12/26/2018, 10:13 AM@NotNull
to that parameters, so after object creation the tool can check properties that has this annotation if they are nullgildor
12/26/2018, 10:14 AMrrader
12/26/2018, 10:14 AM@Valid
rrader
12/26/2018, 10:15 AM@Valid
it will validate the object before passing to methodgildor
12/26/2018, 10:15 AMrrader
12/26/2018, 10:16 AMgildor
12/26/2018, 10:16 AMrrader
12/26/2018, 10:17 AMnull
rrader
12/26/2018, 10:18 AMgildor
12/26/2018, 10:18 AMrrader
12/26/2018, 10:18 AMgildor
12/26/2018, 10:19 AMgildor
12/26/2018, 10:19 AMrrader
12/26/2018, 10:19 AMrrader
12/26/2018, 10:19 AMgildor
12/26/2018, 10:20 AMrrader
12/26/2018, 10:20 AMrrader
12/26/2018, 10:20 AMrrader
12/26/2018, 10:22 AMrrader
12/26/2018, 10:23 AMgildor
12/26/2018, 10:23 AMgildor
12/26/2018, 10:24 AMgildor
12/26/2018, 10:25 AMrrader
12/26/2018, 10:25 AMgildor
12/26/2018, 10:26 AMrrader
12/26/2018, 10:26 AMrrader
12/26/2018, 10:27 AMrrader
12/26/2018, 10:29 AMgildor
12/26/2018, 10:29 AMgildor
12/26/2018, 10:29 AMon can be custom, and it only works after object creation,why? Because validation checks other fields?
rrader
12/26/2018, 10:31 AMrrader
12/26/2018, 10:31 AMrrader
12/26/2018, 10:31 AMrrader
12/26/2018, 10:33 AMrrader
12/26/2018, 10:37 AMgildor
12/26/2018, 10:37 AMgildor
12/26/2018, 10:38 AMrrader
12/26/2018, 11:18 AMsandwwraith
12/26/2018, 2:42 PMrrader
12/26/2018, 2:45 PMsandwwraith
12/26/2018, 2:46 PMgildor
12/26/2018, 3:28 PMgildor
12/26/2018, 3:36 PMrrader
12/26/2018, 3:45 PMrrader
12/26/2018, 3:46 PMrrader
12/26/2018, 3:47 PMrrader
12/26/2018, 3:47 PMgildor
12/26/2018, 4:02 PMrrader
12/26/2018, 8:59 PMBut user will see only 1 validation errorthis is the problem, user want to see all errors at once
use default values for primitiveshm, usually you do not have default at all