Bug 92899

Summary: Empty extra attributes list should not appear in .classpath
Product: [Eclipse Project] JDT Reporter: Jerome Lanneluc <jerome_lanneluc>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Jerome Lanneluc CLA 2005-04-27 08:57:27 EDT
I20050426

If the list of extra attributes is empty, it should not be put in the .classpath
file as:
 <classpathentry kind="src" path="src">
      <attributes>
      </attributes>
 </classpathentry>
Comment 1 Jerome Lanneluc CLA 2005-05-02 07:25:51 EDT
Changed ClasspathEntry#elementEncode(...) to not generate the extra attributes
if the list is empty.
Updated ClasspathTests to reflect this change.
Comment 2 Frederic Fusier CLA 2005-05-12 09:55:27 EDT
Verified for 3.1 M7 using build I20050509-2010 + jdt.core HEAD.