Closed Tim269 closed 5 years ago
/version openinv
may be helpful and what happens that causes this.
Oh sorry. I'm using OpenInv version 3.3.6
and git-Paper-432
(1.13.2)
What were you doing before the exception?
I tried to execute /openinv <player>
or /openender <player>
. However any empty inventory pops up (not the actual one) along with the error in my server console.
Huh, what java version are you using? I've never seen java.base/
prepended on stack trace lines.
I'll look into it, but I'm not sure what could be causing that - we remove the final modifier prior to setting. It's not a SecurityManager or anything like that, it'd be a different error. The modifier just appears to not be changed.
I'm so sorry for being that bad at providing information. I assume my error is caused by my java version as I'm using "11.0.1" 2018-10-16 LTS
Same problem in Java 11
Curious if this has anything to do with some of the reflection stuff being removed in post-version 8 java.
Yeah, I assume somewhere in Java 9 OpenInv broke. Not sure how to handle it, honestly. I really don't want to encourage people to stay on Java 8, but all the good alternatives I can come up with are massive changes I definitely don't have time to implement for a while.
I guess the easiest temp fix would be to just override every ISpecialPlayerInventory manipulation method and redirect the entire inventory contents to a different list/array which actually is the internal one. It'd be way more messy and prone to accidental breakages than it is now (for updates, I basically copy+paste, then review method diffs) but it should allow us to limp along.
Do containers open silently at all? Looks like it should be broken as well.
Not sure what all is defined as containers - but chests do open silently as they used to be.
Interesting, so reflection in Java 9+ still allows accessing private variables, but doesn't allow removing the final modifier. Could be worse I guess.
when will this be fixed. seems to be a little bit inactive ans people need this..
when will this be fixed. seems to be a little bit inactive ans people need this..
I haven't had much free time lately, though I'll admit this isn't a high priority for me due to the low percentage of servers using anything other than Java 8. I'll try to make a junky copy+paste workaround this week, but if anyone wants to take a stab at a higher quality solution that's certainly welcome.
Please try OpenInv 3.3.8-SNAPSHOT. Theoretically should work, but it's nowhere near as clean as it could be.
Hey - thank you so much for mainting this plugin <3. Here is a error I stumpling about recently.