Organising compiled class files
David Holmes
david.holmes at oracle.com
Thu Mar 15 05:09:49 UTC 2018
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:
redefTest/RedefTest.java
redefTest/ver1/Foo.java
redeftest/ver2/Foo.java
is there a way to have jtreg compile all the source files such that the
directory structure is replicated for the .class files?
redefTest/RedefTest.d/RedefTest.class
redefTest/RedefTest.d/ver1/Foo.class
redefTest/RedefTest.d/ver2/Foo.class
Otherwise what suggestions do people have? Can ClassfileInstaller help
here? Or should I just stick with the shell script?
Thanks,
David
More information about the jtreg-use
mailing list