[MDSAL-693] Improve TypeObject.toString() Created: 28/Sep/21 Updated: 27/Jun/22 Resolved: 27/Jun/22 |
|
| Status: | Resolved |
| Project: | mdsal |
| Component/s: | Binding codegen |
| Affects Version/s: | None |
| Fix Version/s: | 10.0.0 |
| Type: | Improvement | Priority: | Low |
| Reporter: | Robert Varga | Assignee: | Ivan Martiniak |
| Resolution: | Done | Votes: | 0 |
| Labels: | pt | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
For TypeObject we end up emitting toString() in the form of: PlspId{_value=0}
This does not quite align what we do for DataObjects, as there we use "value" instead of "_value". Note TypeObjects include also keys and other constructs, so they legally can have differently-named properties. At the very least we need to use a proper property name (not field name). Perhaps we could even omit the property name in case of single-attribute TypeObjects?
|