Bug 227930 - [compiler] NPE during exception reporting
Summary: [compiler] NPE during exception reporting
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 3.4 M7   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-20 19:37 EDT by Stephan Herrmann CLA
Modified: 2008-04-28 11:25 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Herrmann CLA 2008-04-20 19:37:33 EDT
Build ID: cvs version v_853

Whenever the batch compiler catches an exception
the ProcessTaskManager throws NPE while trying to
report the exception.

You probably shouldn't shutdown() the ProcessTaskManager
*before* delegating to this.compiler.handleInternalException()
because shutdown nulls the field this.compiler ;-/
Comment 1 Frederic Fusier CLA 2008-04-21 04:20:00 EDT
I also got it on Windows Vista:
!ENTRY org.eclipse.team.cvs.core 4 4 2008-04-21 10:05:24.897
!MESSAGE The state of /org.eclipse.jdt.core.tests.model/workspace/Formatter/test714/A_out.java has been changed concurrently.
Exception in thread "Compiler Processing Task" java.lang.NullPointerException
        at org.eclipse.jdt.internal.compiler.ProcessTaskManager.run(ProcessTaskManager.java:131)
        at java.lang.Thread.run(Thread.java:619)
Comment 2 Kent Johnson CLA 2008-04-21 11:00:32 EDT
Fixed the NPE - no need to null out the compiler slot

Released for 3.4M7

Still need to find out the original cause of the message:

/org.eclipse.jdt.core.tests.model/workspace/Formatter/test714/A_out.java has
been changed concurrently
Comment 3 David Audel CLA 2008-04-28 11:25:47 EDT
Verified for 3.4M7 using I20080427-2000.