Bug 310142 - BuildErrorReporter.validateExecutionEnvironment(...) wrongly write to .log
Summary: BuildErrorReporter.validateExecutionEnvironment(...) wrongly write to .log
Status: VERIFIED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: 3.6 M7   Edit
Assignee: Curtis Windatt CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-22 12:06 EDT by Dani Megert CLA
Modified: 2010-04-23 03:49 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2010-04-22 12:06:42 EDT
N20100421-2000.

Each time a non-JDT bundle is built I get an exception in my .log. This is caused by wrong code in:

org.eclipse.pde.internal.core.builders.BuildErrorReporter.validateExecutionEnvironment(IBuildEntry, IBuildEntry, IBuildEntry):

This code: IJavaProject project = JavaCore.create(fProject);
either needs to check for the Java nature first or check whether the project exists. Same wrong code pattern seems to be used at other places in that class.
Comment 1 Curtis Windatt CLA 2010-04-22 12:59:50 EDT
Fixed in HEAD.  In all places that we use JavaCore.create in BuildErrorReporter we now immediately check if the java project exists.  Included as part of a fix to bug 291528.
Comment 2 Dani Megert CLA 2010-04-23 03:49:18 EDT
Verified in N20100422-2133.