[KSP] Missing value class
in generics support for bindings #4096
Description
I used to work with kapt, I recently switched to 2.48.x with KSP which fired some issue on my build, thanks to your efforts 2 of them were fixed with recent releases.
Now I'm facing a new one, I suppose the new KSP compiler doesn't support value class
when used with generics because I'm creating a binding which uses a UShort
as one of the generics but the created .java
class from KSP replaces the type UShort
by the classic Short
.
There is the exception:
error: incompatible types: ColumnAdapter<Short,Long> cannot be converted to ColumnAdapter<UShort,Long>
return Preconditions.checkNotNullFromProvides(Module.INSTANCE.database(driver, uuidAdapter, sensorLocationAdapter, pressureAdapter, temperatureAdapter, uShortAdapter));
You can consult the complete code used on my repo here
The binding which fails here
And an example of a failed github action build.
If your confident enough, you can directly try to build the app by yourself by fetching the sources and by simply running a ./gradlew bundleDemo
or any command you consider useful in this case, no environnement variable or plugin is required to run gradle command on this repo.