incremental compilation of langtools does not work

Jonathan Gibbons jonathan.gibbons at oracle.com
Tue Feb 5 08:59:19 PST 2013


Thanks for looking at this.  Your experience regarding tools.jar matches 
mine.

-- Jon

On 02/05/2013 01:15 AM, Erik Joelsson wrote:
> I've have a repro for this and created a bug (JDK-8007524). My change 
> to javac/Main.java was visible when running jdk/bin/javac but not when 
> running images/j2sdk-image/bin/javac, so the problem is in the 
> dependencies for tools.jar.
>
> /Erik
>
> On 2013-02-05 00:02, Jonathan Gibbons wrote:
>> This one took a while to track down.
>>
>> I've been using the new build to debug javac and javadoc.
>> The build is nothing out of the oridinary, and I was building
>> the "images" target.
>>
>> I added some print statements to javac/javadoc classes, but
>> some were not being executed. Eventually, in desperation, I
>> did a "make clean images".   All my print statements now worked.
>>
>> So, it seems to me that changes to my langtools source files
>> don't make it all the way through to tools.jar.  Classes that end up
>> in rt.jar do get updated correctly.
>>
>> To reproduce, try adding/removing print statements like the following
>> to important javac/javadoc classes:
>>     static { System.err.println("<init> JavadocTool"); }
>>
>> -- Jon




More information about the build-infra-dev mailing list