Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-4233

Support generics return type on myfaces-builder-plugin

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • JSR-372
    • None

    Description

      On the JIRA issue below, there was an issue with the _UIWebsocket.getEventNames() method where the generic <String> in the return type of the method was missing in the auto-generated file UIWebsocket.

      //BEGIN CODE COPIED FROM javax.faces.component._UIWebsocket 
      public java.util.Collection getEventNames()
      

      JIRA issue: https://issues.apache.org/jira/browse/MYFACES-4232

       

      To workaround this, the api/src/main/resources/META-INF/componentClass20.vm file was modified to actually generate the getEventNames() method with the correct return type. 

       

      But I think we should fix this in the myfaces-builder-plugin, and then revert back the changes in the componentClass20.vm and javax.faces.component._UIWebsocket files.

       

      I'm not familiar with the myfaces-builder-plugin, so any help here would be appreciated.

       

      Attachments

        Issue Links

          Activity

            People

              paul.nicolucci Paul Nicolucci
              eduardobreijo Eduardo Breijo
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: