4 ms·
We have a java compiler API nowadays that solves this.
by marginalia_nu 3mo ago
We have a java compiler API nowadays that solves this.
- mechanicum 3mo agoIt looks like that was added in Java SE 6, and doesn’t materially change the underlying problem. Have there been more recent developments?
- marginalia_nu 3mo agoI was thinking of JEP 484, which I guess technically isn't a compiler API as much as it is a class file API, but that's kind of a big deal for this type of work as probably the primary work the parts of the classpath you currently aren't editing, moreso than parsing a single .java-file, and the kludges we had before this API (e.g. ASM) were incredibly fragile.