05/17/2022, 9:06 AM
We're coming across this problem with LocalDynamoDB (the JAR of which still ships with a bundled Kotlin 1.3.72 and hence is basically incompatible with everything Kotlin if you want it in the same process!). Has anyone else worked around this - or even is there someone here who works for Amazon who can help to get it sorted?

James Richardson

05/17/2022, 9:56 AM
🤔 what order do you have the files in the classpath? IIRC, classpath is searched in order, so the first occurrence of the class will be loaded preferentially. If the bytecode of the classes is compatible between 1.3.72 and 1.6, and the code doesn't require recompilation for the later sdk version, it is possible that just reordering the classpath might make it work? its not very nice, but it might be "good enough".


07/02/2022, 8:17 AM
Can you fork a copy and rebuild with your matching kotlin version?