Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-3592

Entity implementing interface wrongly identified for ITD inclusion

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.3.1.RELEASE
    • None
    • GENERAL OBJECTS
    • None

    Description

      Interface:

      package com.test.domain;
      
      public interface DemoInterface<T> {
          public void fooBar(T arg);
      }
      

      Entity implementing Interface:

      package com.test.domain;
      import org.springframework.roo.addon.javabean.RooJavaBean;
      import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
      import org.springframework.roo.addon.tostring.RooToString;
      
      @RooJavaBean
      @RooToString
      @RooJpaActiveRecord
      public class DemoEntity implements DemoInterface<DemoEntity> {
      
          @Override
          public void fooBar(T arg) {
              // do something important
          }
      
          private String name;
      }
      

      That was no problem in Roo 1.2.x.
      Roo 1.3.1.RELEASE writes:

      Method '[email protected]75985fe0[methodName=fooBar,parameterTypes=[]]' failed to provide a body, despite being identified for ITD inclusion

      This looks somewhat similar to ROO-3584 and ROO-3585.

      Is there a workaround available?

      Attachments

        Activity

          People

            eruiz Enrique Ruiz (DiSiD)
            sb Stefan Brozinski
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: