Bug 32629 - DeltaProcessor walking some binary output
Summary: DeltaProcessor walking some binary output
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 RC2   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-24 07:18 EST by Philipe Mulet CLA
Modified: 2003-03-10 10:24 EST (History)
0 users

See Also:


Attachments
Project A contents (2.78 KB, application/x-zip-compressed)
2003-02-24 07:20 EST, Philipe Mulet CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philipe Mulet CLA 2003-02-24 07:18:57 EST
Build RC1

On following project setup, the trace below demonstrate an incorrect indexing 
of some generated .class file (bin2/p/C.class).

Project A (source folder  -> bin3)
|  +- p/A.java
+- src (source folder     -> default)
|  +- p/B.java
|  +- src2 (source folder -> bin2)
|  |  +- p/C.java
+- bin (output)
+- bin2 (output)
+- bin3 (output)

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
    <classpathentry excluding="src/|src/src2/|.*|src/|src4/" kind="src"
        output="bin3" path=""/>
    <classpathentry kind="src" output="bin2" path="src/src2"/>
    <classpathentry excluding="src2/" kind="src" path="src"/>
    <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
    <classpathentry kind="output" path="bin"/>
</classpath>


Starting build of A @ Mon Feb 24 13:17:50 CET 2003
FULL build
About to compile p/A.java
About to compile src/src2/p/C.java
About to compile src/p/B.java
Writing new class file A.class
Writing new class file C.class
Writing new class file B.class
Recording new state : State for A (#0 @ Mon Feb 24 13:17:50 CET 2003)
Finished build of A @ Mon Feb 24 13:17:51 CET 2003
--------------------------------------------------------------------------------
---------------------------------------
FIRING PRE_AUTO_BUILD Delta [Thread[ModalContext,5,main]]:
<NONE>
(Thread[ModalContext,5,main]) -> index state updated to: UPDATING for: 
D:\eclipse\testing\TestWorkspace\.metadata\.plugins\org.eclipse.jdt.core\1443656
097.index
(Thread[ModalContext,5,main]) REQUEST   background job - 
indexing /A/bin2/p/C.class
FIRING POST_CHANGE Delta [Thread[ModalContext,5,main]]:
Java Model[*]: {CHILDREN}
	A[*]: {CHILDREN}
		[project root][*]: {CHILDREN}
			bin2.p[*]: {CHILDREN}
				C.class[*]: {CONTENT}
Listener 
#1=org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider@f3552f
FIRING POST_RECONCILE Delta [Thread[ModalContext,5,main]]:
<NONE>
(Thread[Java indexing,4,main]) 1 awaiting jobs
(Thread[Java indexing,4,main]) STARTING  background job - 
indexing /A/bin2/p/C.class
(Thread[Java indexing,4,main]) FINISHED background job - 
indexing /A/bin2/p/C.class
(Thread[Java indexing,4,main]) -> saving index 
D:\eclipse\testing\TestWorkspace\.metadata\.plugins\org.eclipse.jdt.core\1443656
097.index
(Thread[Java indexing,4,main]) -> index state updated to: SAVED for: 
D:\eclipse\testing\TestWorkspace\.metadata\.plugins\org.eclipse.jdt.core\1443656
097.index
Comment 1 Philipe Mulet CLA 2003-02-24 07:20:01 EST
Created attachment 3670 [details]
Project A contents
Comment 2 Philipe Mulet CLA 2003-02-24 07:30:14 EST
I wonder how this project setup could ever lead to indexing binaries, since 
there is no binary entry on the classpath !?!
Comment 3 Philipe Mulet CLA 2003-02-25 13:10:39 EST
Side-note, we should not allow custom output folder to coincidate with any 
source folder other than the referencing source folder.
Comment 4 Jerome Lanneluc CLA 2003-02-26 04:57:53 EST
Entered bug 32207 for the side-note.
Comment 5 Jerome Lanneluc CLA 2003-02-26 04:59:24 EST
Oops, that's bug 33207.
Comment 6 Jerome Lanneluc CLA 2003-02-26 05:04:07 EST
Problem is with DeltaProcessor that walks the binary output. Changed title to 
reflect this.
Comment 7 Jerome Lanneluc CLA 2003-02-26 05:18:35 EST
When creating the output infos, the DeltaProcessor was stopping on the first 
custom output.

Fixed and added regression test JavaElementDeltaTests.testModifyOutputLocation4
()
Comment 8 David Audel CLA 2003-03-10 10:24:01 EST
Verified.