CreateSymbols / ct.sym issue

Salter, Thomas A Thomas.Salter at unisys.com
Fri Feb 15 07:09:36 PST 2013


I made a change to a private class in java.lang so that it depends on a class in an external jar file.  I have no problem compiling or executing this, but the build fails when trying to make ct.sym.

The specific change I made was to have java.lang.ProcessImpl inherit from "MyAbstractProcess", which in turn inherits from java.lang.Process.  MyAbstractProcess is included in my.jar, which I've added to both the compile path and, at runtime, the bootclasspath.  The intent is to make visible some process attributes that are meaningful when running on our OS.

The problem with CreateSymbols is that it explicitly ignores any classpath and sourcepath settings and instead uses the bootclasspath for the bootstrap JVM.  It modifies the path to use the newly generated rt-orig.jar instead of rt.jar, but otherwise uses all the other jar files from the bootstrap JVM.  It seems to me that it should be using the class paths set in the JAVAC_CMD macro, rather than overriding them.

I was able to work around this by adding my jar file to the bootclasspath for the bootstrap JVM, but that's not particularly easy since there are two very different definitions for JAVAC_CMD.

Have I broken an assumption/requirement that rt.jar have no dependencies?



Tom Salter  |  Software Engineer  |  Java & Middleware Development

Unisys  |  2476 Swedesford Road  |  Malvern, PA  19355   |  610-648-2568 |  N385-2568


[cid:image001.gif at 01CE0B63.026F27B0]


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20130215/bff5219e/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 2511 bytes
Desc: image001.gif
Url : http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20130215/bff5219e/image001.gif 


More information about the compiler-dev mailing list