Bug 96401 - jdt.core tests pass, but fill the .log
Summary: jdt.core tests pass, but fill the .log
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 RC1   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-24 04:31 EDT by Martin Aeschlimann CLA
Modified: 2005-05-27 09:20 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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