| Summary: | [wizard] complains about discouraged package name if base class is a nested class | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] Objectteams | Reporter: | Stephan Herrmann <stephan.herrmann> | ||||
| Component: | OTDT | Assignee: | Stephan Herrmann <stephan.herrmann> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | minor | ||||||
| Priority: | P3 | ||||||
| Version: | 0.8 | ||||||
| Target Milestone: | 2.0 RC2 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Created attachment 196281 [details]
Fix
Implemented by first asking the enclosingType to resolve the base class,
and only if no result ask JavaConventions.
Committed as r1615. Verified using build 201105311237 |
I came across this in the following situation: team class Outer { protected team class Mid { // invoke new role wizard here } } enter a role name and select Outer.Mid as the base class. We get a complaint that Outer.Mid is a discouraged name, because the qualifier is interpreted as a package name. Instead, if the type already exists we should not check with JavaConventions.