corba, jaxp and jaxws compiled before jdk repository

Erik Joelsson erik.joelsson at oracle.com
Wed Sep 12 07:54:36 PDT 2012


Those repos are indeed compiled before the jdk just like in the old 
build. As I understand it, jaxp and jaxws have historically been 
delivered to other places as well as the jdk, which forced them to be 
compatible with at least some earlier jdk version, so this wasn't an 
issue. I also understand nobody touches corba, which makes it a non 
issue too. We have not considered moving these builds as we haven't 
thought it a problem.

One way to solve this could be to leverage the GenStubs facility in 
langtools. Another would be to add these source dirs to the main jdk 
java compile line. I don't really like the second option though. In that 
case I would rather see the source being folded into the jdk repo 
instead of living in it's own repo.

In hotspot, all javacode is compiled with the javac from the bootjdk as 
far as I know, so in that respect there is no dependency on the jdk 
being built.

/Erik

On 2012-09-12 16:18, Alan Bateman wrote:
>
> In the discussion on build-dev about boot cycle builds then Andrew 
> Hughes mentioned the problem with the old build system where jaxp, 
> jaxws and corba are compiled before the jdk repo and this can lead to 
> several problems. I had assumed this would not be an issue with the 
> new build but now I'm not sure.
>
> As a test for something that we may need to do in JDK8, I added an 
> interface to java.util.spi (jdk repository) and then attempted to 
> implement that interface in a class in the jaxp repository. This is a 
> good example of code in jaxp needing to make use of something that is 
> new in jdk8. On re-build the compile of the jaxp repository failed 
> because the new class is not known to the bootstrap JDK (and the 
> jdk/classes directory is not on the classpath specific to javac).
>
> Are corba, jaxp and jaxws compiled before jdk just to follow the old 
> build system? Given circular dependencies between these repositories 
> then has there been any consideration given to compiling them 
> together?  (I'm ignoring hotspot for now, I realize that SA and JDI 
> are issues too).
>
> -Alan



More information about the build-infra-dev mailing list