Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-7611

I18n doesn't work for collections inside of parametrised types

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 6.2
    • 6.2
    • None
    • None
    • 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.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                rkovarik Roman Kovařík
                rkovarik Roman Kovařík
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - 0d
                      0d
                      Logged:
                      Time Spent - 5.45h
                      5.45h