Getting class output file (modules vs non-modules)

Radosław Smogura mail at
Thu Sep 17 05:29:08 UTC 2020

Hi all,

I’m trying to write class transformer which will cooperate with JavaC compiler.

To make this working I detect changed class and I’m using FileManager obtained from JavacProcessingEnvironment to get Java File Object for output, and than read and store changed byte code.

However I have to determine output location, and I wonder for what kind of elements I have to do care about this? In source code of JavaC writer I’ve seen it happens only if owner of element is module, but owners of classes are packages? So should I care about output location of calls files or can I just use StandardLocation.CLASS_OUTPUT?

Kind regards,
Rado Smogura

More information about the compiler-dev mailing list