Bug 3319 - wrong compile-time error message (1GG1LDK)
Summary: wrong compile-time error message (1GG1LDK)
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: All Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M2   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 22:53 EDT by Philipe Mulet CLA
Modified: 2003-07-16 04:13 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 Philipe Mulet CLA 2001-10-10 22:53:09 EDT
When this() or super() is not the first statement of a constructor, the following error message shows:

"Syntax error on token "(", "++", "--" expected"

The error message has nothing to do with the reason. I think it should be something like:

"A call to another constructor must be the first statement of the calling constructor"

NOTES:

PM (7/11/2001 9:50:54 AM)
	The parse error message could be improved.
	A custom message could be added.
Comment 1 Philipe Mulet CLA 2001-10-18 09:36:54 EDT
Defer
Comment 2 DJ Houghton CLA 2001-10-29 17:09:09 EST
PRODUCT VERSION:
125 SDK
Windows 2000

Comment 3 Philipe Mulet CLA 2003-06-10 09:27:04 EDT
Reconsidering given new syntax error diagnosis heuristic
Comment 4 David Audel CLA 2003-07-03 07:55:01 EDT
Fixed.
Comment 5 David Audel CLA 2003-07-16 04:13:39 EDT
Verified.