Bug 118064 - Access rules are not flushed between classpaths in batch mode.
Summary: Access rules are not flushed between classpaths in batch mode.
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-25 10:25 EST by Olivier Thomann CLA
Modified: 2005-12-12 12:01 EST (History)
0 users

See Also:


Attachments
Proposed fix (930 bytes, patch)
2005-11-25 11:06 EST, Olivier Thomann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Thomann CLA 2005-11-25 10:25:37 EST
When using the batch compiler and access rules on the classpaths entries, they are not flushed between entries. This means that the subsequent entries get all previous access rules.
Comment 1 Olivier Thomann CLA 2005-11-25 11:06:30 EST
Created attachment 30619 [details]
Proposed fix
Comment 2 Olivier Thomann CLA 2005-11-25 13:36:10 EST
Fixed and released in HEAD.
No regression tests added since this is internal. The classpaths cannot be accessed from outside the batch package.
To verify it, use the test027 in org.eclipse.jdt.core.tests.compiler.regression.BatchCompilerTest. Put a breakpoint  line 168 and check the contents of the checkedClasspaths field for the batchCompiler object.
You should check that the first entry (ClasspathDirectory) contains two access rules and the other one only one. Before the fix, the second one would contain 3 rules.
Comment 3 Frederic Fusier CLA 2005-12-12 12:01:11 EST
Verified for 3.2 M4 using build I20051212-0010