java.lang.NoSuchMethodError: org.foo.bar.methodName()Z

I am attempting to develop a mod for a Java game (surprisingly not Minecraft!) built on Java 7. I have access to the game source, and built the .jar myself. However when I try to run the game to debug my mod, I am greeted with a freeze upon loading some game-world objects with a "NoSuchMethodError" for a method that clearly and demonstrably exists in the decompiled game .jar - albeit obviously without the Z. Out of curiosity, I built an altered jar that catches that error, and it just hangs on an identical NoSuchMethod for a different method in the same class. I already tried clearing my IDE cache and rebuilding the game using a different SDK; no change. Any ideas on how to generally fix this?
4 Replies
JavaBot
JavaBot4w ago
This post has been reserved for your question.
Hey @Ithirahad Ivrar'kiim! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
dan1st
dan1st4w ago
the Z at the end just means it's a boolean method Can you show the javap output of the class file? Is the error in a class you modified?
Ithirahad Ivrar'kiim
Eh, I circumvented the error and it started telling me that an entire class elsewhere in the project was undefined My project is probably just busted for historical reasons. I'm making a new one from my repo fork I will come back to this thread if issues persist ...Alright, it was actually a stack overflow elsewhere which caused this. I missed it in the absolute flood of logging that this game produces in a single stream.
JavaBot
JavaBot4w ago
Post Closed
This post has been closed by <@116880229103828992>.

Did you find this page helpful?