[MAGNOLIA-7611] I18n doesn't work for collections inside of parametrised types Created: 29/Aug/19  Updated: 11/Sep/19  Resolved: 03/Sep/19

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: 6.2
Fix Version/s: 6.2

Type: Bug Priority: Neutral
Reporter: Roman Kovařík Assignee: Roman Kovařík
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 5.45h
Original Estimate: Not Specified

Issue Links:
dependency
is depended upon by MGNLUI-5305 Add translation support to updated UI... Closed
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
Sprint: UI Framework 5, UI Framework 6

 Description   

Given any parametrised class:

                                                                             
@I18nable                                                                         
public static class Parametrised<T> { //T kills generics for list, removing mitigates the problem                 
    List<SampleObj> list = Arrays.asList(new SampleObj());                        
                                                                                  
    public List<SampleObj> getList() {                                            
        return list;                                                              
    }                                                                             
}                                                                                 

info.magnolia.i18nsystem.bytebudddy.AnyTypeInGenericSignatureMatcher#matches fails to resolve generic as list is just a raw type.


Generated at Mon Feb 12 04:25:17 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.