| Summary: | exception thrown when parsing a visual inheritance subclass of a parent that contains a menu with protected getters for menu items | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Clarkb <clarkb> | ||||||||
| Component: | WindowBuilder | Assignee: | Konstantin Scheglov <Konstantin.Scheglov> | ||||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | clayberg | ||||||||
| Version: | unspecified | ||||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows 7 | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Clarkb
Created attachment 204807 [details]
Parent class
Toplevel class containing a menu
Created attachment 204808 [details]
Child class
When opening the child and switching to design mode, and index out of bounds exception is thrown
Created attachment 204809 [details]
Stack Trace prome parsing error
This is a second attempt to compile a report for this bug. The evaluator should not have any difficulty reproducing the problem because the example test case is very simple. Reproduced using test case. I performed some additional testing and observed the following: 1) If a menu item is exposed to the child by making the getter method public or protected, the WB parser throws an exception 2) if the getter is set to private (which of course is useless), then the exception is not thrown 3) If the getter method is removed the exception is not trhpwn 4) if the menuItem itself is changed from protected to private and the the getter method is protected or public, the exception is NOT thrown. I am now able to work around this bug with simple changes to my code so it's now a lower priority for me. Fixed in trunk. Now we will create model only for one way (first method) of exposing same object. |