Bug 96401

Summary: jdt.core tests pass, but fill the .log
Product: [Eclipse Project] JDT Reporter: Martin Aeschlimann <martinae>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 RC1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Martin Aeschlimann CLA 2005-05-24 04:31:04 EDT
20050524 HEAD

The tests pas but the log contains entries:

It seems that 'extraAttributes' is null. A cause of that is e.g. 

CompletionTests2$CompletionContainerInitializer$DefaultContainer.getClasspathEntries()
line: 74

The Javadoc of JavaCore.newXYEntrys should define in null is a valid argument. 


java.lang.NullPointerException
 at
org.eclipse.jdt.internal.core.ClasspathEntry.elementEncode(ClasspathEntry.java:442)
 at org.eclipse.jdt.internal.core.JavaProject.encodeClasspath(JavaProject.java:921)
 at
org.eclipse.jdt.internal.core.JavaModelManager.saving(JavaModelManager.java:2126)
 at
org.eclipse.core.internal.resources.SaveManager.executeLifecycle(SaveManager.java:324)
 at org.eclipse.core.internal.resources.SaveManager$1.run(SaveManager.java:153)
 at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1031)
 at org.eclipse.core.runtime.Platform.run(Platform.java:775)
 at
org.eclipse.core.internal.resources.SaveManager.broadcastLifecycle(SaveManager.java:156)
 at org.eclipse.core.internal.resources.SaveManager.save(SaveManager.java:957)
 at
org.eclipse.core.internal.resources.DelayedSnapshotJob.run(DelayedSnapshotJob.java:44)
 at org.eclipse.core.internal.jobs.Worker.run(Worker.java:67)
Comment 1 Jerome Lanneluc CLA 2005-05-24 12:58:30 EDT
'null' is not a valid value for extraAttributes. Fixed the tests to pass in an
empty array instead.
Comment 2 David Audel CLA 2005-05-27 09:20:59 EDT
Verified in i20050527-0010