Bug 79091 - [compiler] Should report invalid type only on the name
Summary: [compiler] Should report invalid type only on the name
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 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-19 13:00 EST by Olivier Thomann CLA
Modified: 2004-12-14 10:11 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Thomann CLA 2004-11-19 13:00:16 EST
Using latest,

class X { Zork[] foo; }

We report an error on Zork[] instead of Zork only.
Comment 1 Olivier Thomann CLA 2004-11-19 13:20:04 EST
The fix is in the ProblemReporter.invalidType(...). We also added a new field on
ArrayTypeReference to remember the original source end.
Fixed and released in HEAD.
Updated existing tests in ComplianceDiagnoseTest (test0005 and test0016).
Fixed and released in HEAD.
Comment 2 Jerome Lanneluc CLA 2004-12-14 10:11:43 EST
Verified (in I200412140010) that the error is on Zork only.