Re: javac unzips class files from jars on class path into output directory

2017-03-09 Thread Jonathan Gibbons
-implicit:none is also a good solution, but which solution is best depends on your specific situation (i.e. there is no one "best" for everyone.) With -implicit:none, you are allowing javac to determine which kind of file to read (source or class) when more than one kind is available for any

Re: javac unzips class files from jars on class path into output directory

2017-03-08 Thread Jonathan Gibbons
Doug, The jar files in your example contain source code; therefore javac is not so much copying the contents of the classpath to the output directory as it is compiling the source it is finding. Two experiments for you. 1. $ unzip -l jdk.internal.vm.ci.jar | sort -k 4 | head -n 20

Re: javac unzips class files from jars on class path into output directory

2017-03-07 Thread Doug Simon
Hi Jon, I've attached bug.zip which should reproduce the issue (assuming jdk 9 javac is on your path): unzip bug.zip cd bug ./run.sh find bin The last command above should show the extra class files from jdk.internal.vm.ci.jar in bin. -Doug > On 7 Mar 2017, at 18:55, Jonathan Gibbons

Re: javac unzips class files from jars on class path into output directory

2017-03-07 Thread Jonathan Gibbons
On 03/07/2017 08:06 AM, Doug Simon wrote: To be able to develop Graal on JDK 9, we're using the `--release 8` javac option and providing jar files for API that is either not in 9 or is not exported in 9. Here is a simplified form of a javac command: javac -cp