Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357876 - Confusing errors reported after changing build path EE
Summary: Confusing errors reported after changing build path EE
Status: CLOSED WONTFIX
Alias: None
Product: PDE
Classification: Eclipse Project
Component: API Tools (show other bugs)
Version: 3.8   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PDE API Tools Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: investigate
Depends on:
Blocks:
 
Reported: 2011-09-15 16:20 EDT by Michael Rennie CLA
Modified: 2019-09-23 00:35 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Rennie CLA 2011-09-15 16:20:04 EDT
Version: 3.8.0
Build id: I20110912-2126

To try and get a feel for the amount of the work to convert JDT debug to a 1.5 EE, I opened the build path property page and changed the EE to 1.5 (OK). I then went to the compile options page and changed some options to be error from warning / ignore, which caused a full build of org.eclipse.jdt.debug (OK). When I started looking at some of the errors from API tools I found a lot like the following:

The constructor StringBuilder(String) referenced in org.eclipse.jdt.internal.debug.eval.ast.instructions.Constructor.toString() is not defined in the bundle's required execution environment: J2SE-1.4

There are three main things wrong with this error:
1. I just changed the EE for the project to 1.5, but if you don't realize that the buildpath EE and the BREE are seperate this causes confusion

2. The error talks about the constructor for a class I know is not in the code, here is the code the error references:

 InstructionsEvaluationMessages.Constructor_constructor__1 + fSignature;

underneath the class file might be using StringBuilder, but it is confusing.

3. The error marker gets placed on the class definition when we tell you in the problem description that it is in Constructor.toString() - causing confusion

It feels like we have some work to do here to make errors of this kind a bit less confusing. First thoughts:

1. Properly place the error markers
2. Perhaps we could let the user know about the new inconsistency between the BREE and buildpath EE
3. It would be nice if we could better describe the error - basically the user sees the source as two concatenated strings but the error talks about using a constructor from > 1.4.
Comment 1 Eclipse Genie CLA 2019-09-21 14:42:45 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.