gejun123456 / HotSwapHelper

GNU General Public License v2.0
69 stars 6 forks source link

Support for redefinition of classes from .jar (extraClassPath config) #16

Open skybber opened 3 weeks ago

skybber commented 3 weeks ago

A killer feature would be simplification of support for redefinition of classes from libraries. It could work in such a way that there would be an ad-hoc directory in the project, accessible through extraClassPath HA config param . If a user opened a file from a .jar library, they could modify the class and save it in the ad-hoc directory. Classes from this directory would then be loaded with priority due to the extraClassPath configuration in HA, and live redefinition would function at the same time. Perhaps it could be directed to the scratches directory. I've already had something similar configured, and when it’s necessary to make an ad-hoc adjustment in a .jar file, it’s absolutely fantastic

gejun123456 commented 3 weeks ago

This feature is great, founded a project https://github.com/Liubsyy/JarEditor maybe can make work easier

Liubsyy commented 3 weeks ago

Yeah, it may be supported in JarEditor. When using JarEditor to edit the class in the jar, it will first be saved to *jar_temp/jar_edit_out. Maybe this can be used as extraClasspath.

This feature is great, founded a project https://github.com/Liubsyy/JarEditor maybe can make work easier