Kotlin lazy fields
DaRacci opened this issue · 4 comments
DaRacci commented
zml2008 commented
Are you able to provide the bytecode for the class in question?
DaRacci commented
Are you able to provide the bytecode for the class in question?
Here are the classes
https://drive.google.com/drive/folders/1xU5uSVn0acYrjx1G5mrZNksK3lbW1qbs?usp=sharing
zml2008 commented
private final kotlin.Lazy localVersion$delegate;
descriptor: Lkotlin/Lazy;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
RuntimeInvisibleAnnotations:
0: #113()
org.jetbrains.annotations.NotNull
private final kotlin.Lazy localFile$delegate;
descriptor: Lkotlin/Lazy;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
RuntimeInvisibleAnnotations:
0: #113()
org.jetbrains.annotations.NotNull
Not a configurate issue -- the kotlin compiler doesn't seem to mark these fields as synthetic, which should be done for compiler-generated fields. You could maybe add a custom node resolver to the mix that will never return a node for these fields (similar to how NodeResolver.onlyWithSetting()
filters out un-annotated fields), but Configurate's behavior here isn't really incorrect.
DaRacci commented