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

JavaBean implementing Interface and overriding getter causing null pointer

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.1.RC2
    • 1.3.1.RC2
    • GENERAL OBJECTS
    • None
    • Java 7

    Description

      thank you for fixing ROO-3584 - for the first time I cloned and built roo, tried it out - and it worked. but I discovered annother issue:

      Interface:

      public interface DemoInterface {
      	
      	public long getRank();
      }
      

      Bean:

      @RooJavaBean
      public class DemoEntity implements DemoInterface {
      
          private String name;
      
          private long rank;
          
          public long getRank() {
          	return this.rank;
          }    
      }
      

      causes:
      NullPointerException at org.springframework.roo.addon.javabean.JavaBeanMetadata.checkIfInterfaceMethodWasImplemented(JavaBeanMetadata.java:607)

      Attachments

        Activity

          People

            jcgarcia Juan Carlos GarcĂ­a del Canto
            markus.strenn Markus Strenn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: