Bug 278849

Summary: No recompilation after native lib change
Product: [Eclipse Project] JDT Reporter: Marvin Fröhlich <eclipse>
Component: CoreAssignee: Kent Johnson <kent_johnson>
Status: VERIFIED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: Olivier_Thomann, srikanth_sankaran
Version: 3.4   
Target Milestone: 3.6 M1   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Marvin Fröhlich CLA 2009-06-02 15:01:20 EDT
Build ID: I20080617-2000

Steps To Reproduce:
When I change the native library location entry of a jar library in the classpath of a project, no recompilation is necessary. Eclipse triggers a project recompilation.

More information:
Comment 1 Kent Johnson CLA 2009-06-25 13:49:02 EDT
Sorry but how are we supposed to know that the jar is the exact same ?
Comment 2 Marvin Fröhlich CLA 2009-06-28 15:30:07 EDT
(In reply to comment #1)
> Sorry but how are we supposed to know that the jar is the exact same ?
> 

It's not the jar, that has changed (what I am talking about), but just the native library location. The jar remains the exact same. And a native library doesn't need a recompilation.

Marvin
Comment 3 Kent Johnson CLA 2009-07-06 10:46:15 EDT
Do you have an example ?

I just change the 'native library location' of a jar & it caused an incremental build.


Starting build of 278849 @ Mon Jul 06 10:47:43 EDT 2009
Found source delta for: 278849
Clearing last state : State for 278849 (#1 @ Mon Jul 06 10:46:52 EDT 2009)
INCREMENTAL build
Recording new state : State for 278849 (#2 @ Mon Jul 06 10:46:52 EDT 2009)
Finished build of 278849 @ Mon Jul 06 10:47:43 EDT 2009
Comment 4 Marvin Fröhlich CLA 2009-07-07 14:00:54 EDT
(In reply to comment #3)
> Do you have an example ?
> 
> I just change the 'native library location' of a jar & it caused an incremental
> build.

This is exactly, what I was talking about. No recompilation (incremental build) is necessary here. If I just change the native library location and the jar remains the same (just as everything else in the build path) like you did, no incremental build should be triggered.

Marvin
Comment 5 Kent Johnson CLA 2009-07-08 09:54:38 EDT
But every resource change triggers a full or an incremental build.

We must check to see what has changed with the jar file.

No source files are recompiled as a result of this change.
Comment 6 Srikanth Sankaran CLA 2009-08-04 01:23:12 EDT
Verified for 3.6M1