| Summary: | Need to check for invalid enumerations | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Matt Heitz <mheitz> |
| Component: | EDT | Assignee: | Project Inbox <edt.compiler-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | margolis, pharmon, svihovec |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Matt Heitz
On second thought, that first case should be valid. If a field hasn't been given a value we'll use its position. So in my example Betty would be 4. *** Bug 354901 has been marked as a duplicate of this bug. *** I have added lots of validation to Enumerations. I have also added code to default the int constant value for each entry based on it's definition location. The first entry in the enumeration will have a default value of 1. The enumeration with no values wasn't marked as invalid. The other problems are fixed. enumeration Bad3 end I have added the check to disallow enumerations with no fields to EnumerationValidator Verified. |