Organising compiled class files
david.holmes at oracle.com
Thu Mar 15 09:43:59 UTC 2018
On 15/03/2018 6:41 PM, Weijun Wang wrote:
> Do CompilerUtils and InMemoryJavaCompiler in jdk.test.lib.compiler work for you?
CompilerUtils seems like it could replace the shell script. IMJC is
probably a bit too low-level (I could also exec javac).
>> On Mar 15, 2018, at 1:09 PM, David Holmes <david.holmes at oracle.com> wrote:
>> I'm working on class redefinition tests which require me to have multiple versions of the same-named class but different actual contents. At the moment this is done via shell script that invokes javac and then moves the generated .class files to the desired location. This seems a bit kludgy.
>> Given a layout:
>> is there a way to have jtreg compile all the source files such that the directory structure is replicated for the .class files?
>> Otherwise what suggestions do people have? Can ClassfileInstaller help here? Or should I just stick with the shell script?
More information about the jtreg-use