Bug 118064

Summary: Access rules are not flushed between classpaths in batch mode.
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: 3.2 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed fix none

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