Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361070 - RedeclaredFieldNameException should tell which type caused the problem (Patch)
Summary: RedeclaredFieldNameException should tell which type caused the problem (Patch)
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: IMP (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Jurgen Vinju CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-15 16:55 EDT by Anya Helene Bagge CLA
Modified: 2014-01-09 15:04 EST (History)
1 user (show)

See Also:


Attachments
Patch to fix the problem (2.75 KB, patch)
2011-10-15 16:56 EDT, Anya Helene Bagge CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anya Helene Bagge CLA 2011-10-15 16:55:42 EDT
The RedeclaredFieldNameException, used to report errors from TypeStore, doesn't report any info about the relevant type, making it hard to track down the error.

The attached patch adds the name of the type to the exception message (and to the exception object), so you get something like:

"The field name baz is illegally used for both int and str in type Foo"

(+ fix a speling error in the error message)
Comment 1 Anya Helene Bagge CLA 2011-10-15 16:56:13 EDT
Created attachment 205270 [details]
Patch to fix the problem
Comment 2 Jurgen Vinju CLA 2011-10-26 17:14:23 EDT
Applied the patch. Thanks Anya!