Use a custom classloader at compile time

前端 未结 6 1652
星月不相逢
星月不相逢 2021-01-14 04:16

Is it possible to specify a custom classloader for javac (or some alternative java compiler)?

I\'d love such a feat because it would allow me to compile classes that

6条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-14 04:41

    The only two ways I know of plugging directly into javac (as run on the command line) are via the annotation processor or via a compiler-specific hack.

提交回复
热议问题