SpongePowered/Configurate

ObjectMapper issues when distributing Configurate 'Jar-in-Jar'

jpenilla opened this issue · 1 comments

This issue occurs when using the ObjectMapper and jij'ing Configurate 4.1.0. When jij'ing 4.0.0, the issue is not present.

When using shadow to shade and relocate 4.1.0, the issue is also not present.

https://paste.gg/p/anonymous/15a7ffffebdc491eab0812614dd66d8d

This can be reproduced by building the latest commit of https://github.com/jpenilla/TabTPS and attempting to load the fabric version, which jij's Configurate 4.1.0.

Resolved with f97a6ab for now, with longer-term plans discussed in #201 and #202.

Seems to be a restriction on setting final fields when using VarHandles -- I wonder if the restriction could be relaxed by passing a custom MethodHandles.Lookup to the field discoverer as well. Probably best to not depend on writing final fields though.