Changing a classfile version level with javassist

Is it possible to change a classfile version using javassist? Namely from 7 to 8. I know with ASM there is the setVersion() but looking to do this with jassist. Cant find any information on doing this anywhere though.
3 Replies
JavaBot
JavaBot3y ago
Hey, @TonicBox! Please remember to /close this post once your question has been answered!
TonicBox
TonicBoxOP3y ago
After a day of searching, I answered my own question nearly immediately after posting this xd For anyone else in the future curious, the needed methods are in:
ClassFile::setMajorVersion()
ClassFile::setMinorVersion()
ClassFile::setMajorVersion()
ClassFile::setMinorVersion()
JavaBot
JavaBot3y ago
Post Closed
This post has been closed by <@246089066188111873>.

Did you find this page helpful?