Giorgio Antonioli
05/13/2021, 2:05 PMkotlinOptions.jvmTarget = "1.8" but I can still access the JDK 11 classes. To make a clear example: the API AccessibleObject.isAccessible is deprecated since 9. I’d like to still use the source of 1.8 in which that API is not deprecated.Michael
05/13/2021, 2:13 PMGiorgio Antonioli
05/13/2021, 2:18 PMAccessibleObject.canAccess() is available only since 9. This means that if I replace AccessibleObject.isAccessible with AccessibleObject.canAccess() , the program will crash at runtime when run on 1.8. Obviously AccessibleObject.isAccessible is just an example of the problemMichael
05/13/2021, 2:19 PMMichael
05/13/2021, 2:21 PMGiorgio Antonioli
05/13/2021, 2:22 PMMichael
05/13/2021, 2:26 PMGiorgio Antonioli
05/13/2021, 2:31 PMkotlinOptions.jvmTarget or sourceCompatibility /`targetCompatibiliy` behaved in the way I was expecting in the first postMichael
05/13/2021, 2:32 PMGiorgio Antonioli
05/13/2021, 2:42 PMephemient
05/13/2021, 5:09 PMGiorgio Antonioli
05/13/2021, 7:04 PMilya.gorbunov
05/15/2021, 6:42 PMjdkHome option from kotlinOptions to specify path to JDK that is used to resolve JDK APIGiorgio Antonioli
05/17/2021, 10:52 AM