[MAGNOLIA-8528] ByteBuddyI18nizer fails on generic types with extends Created: 25/Aug/22 Updated: 29/Mar/23 |
|
| Status: | Open |
| Project: | Magnolia |
| Component/s: | None |
| Affects Version/s: | 6.2.22 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Roman Kovařík | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Template: | |||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||||||
| Date of First Response: | |||||||||||||
| Epic Link: | FieldsMaintenance | ||||||||||||
| Team: | |||||||||||||
| Description |
| Comments |
| Comment by Tobias Szczepanski [ 26/Aug/22 ] |
|
Hi everyone, great, thanks a bunch for this bug issue. The motivation behind this is for us to enable a SwitchableFieldDefinition based on Enums instead of Options. Therefore it would be awesome, if you could also consider to refactor the generic type of info.magnolia.ui.datasource.enumeration.EnumDatasourceDefinition to extend Enum<T>. Thank you! Best |
| Comment by Roman Kovařík [ 29/Aug/22 ] |
|
Hey tszczepanski, the is also one liner as a workaround to make this work, see https://git.magnolia-cms.com/users/rkovarik/repos/ui/commits/b19f56f3cd2a02a8372bcdbd70c6a848eda82f40#magnolia-ui-framework/src/main/java/info/magnolia/ui/editor/SwitchableFormView.java which should work thanks to the erasure of generics at runtime. (besides implementing a converter for EnumSelectFieldSupport) Hope that helps Roman |