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

JavaBean implementing Interface and overriding getter causing null pointer

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.1.RC2
    • Fix Version/s: 1.3.1.RC2
    • Component/s: GENERAL OBJECTS
    • Labels:
      None
    • Environment:
      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

            • Assignee:
              jcgarcia Juan Carlos García del Canto
              Reporter:
              markus.strenn Markus Strenn
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: