
Crash when attempting to use an Injector (Fabric 1.17.1)
The-Fireplace opened this issue ยท 2 comments
Mod Version
4.0.6+1.17.1
What mod loader(s) are you seeing the problem on?
Fabric
Mod Loader Version
No response
Problem Description
Game crashes on startup
Steps To Reproduce
- Set up a plain Fabric instance with Fireplace Lib and its bundled Annotated DI
- Launch game
Crash Report or Error Logs
https://paste.atlauncher.com/view/566919ef-9ddf-45e8-890b-bc2040d4e989
Additional Information
No response
Last working version for 1.17.1 appears to be 4.0.1. Guice uses Guava's ImmutableMap#buildOrThrow which was introduced in Guava 31.0, and the Guava version on 1.17.1 appears to resolve to either 21.0 or 27.0.1-jre, both too old for this feature. Looking at Guice's pom.xml, it appears they used Guava 31.0.1-jre, so a potential solution may be bundling this version of Guava to use.
https://github.com/google/guice/blob/6.0.0/pom.xml