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

Method naming conventions provided by Json addon need to be adjusted to take inheritance relationships into account

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 1.1.0.M3
    • Component/s: GENERAL OBJECTS
    • Labels:
      None

      Description

      roo> script clinic.roo
      roo> perform test

      [INFO]
      ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO]
      ------------------------------------------------------------------------
      [INFO] Compiler errors :
      error at com/springsource/petclinic/domain/Vet_Roo_Json.aj:25::0 can't
      override java.util.Collection
      com.springsource.petclinic.domain.AbstractPerson.fromJsonArray(java.lang.String)
      with java.util.Collection<com.springsource.petclinic.domain.Vet>
      com.springsource.petclinic.domain.Vet.fromJsonArray(java.lang.String)
      return types don't match
      error at com/springsource/petclinic/domain/AbstractPerson.java::0 can't
      override java.util.Collection
      com.springsource.petclinic.domain.AbstractPerson.fromJsonArray(java.lang.String)
      with java.util.Collection<com.springsource.petclinic.domain.Vet>
      com.springsource.petclinic.domain.Vet.fromJsonArray(java.lang.String)
      return types don't match
      error at com/springsource/petclinic/domain/Owner_Roo_Json.aj:25::0 can't
      override java.util.Collection
      com.springsource.petclinic.domain.AbstractPerson.fromJsonArray(java.lang.String)
      with java.util.Collection<com.springsource.petclinic.domain.Owner>
      com.springsource.petclinic.domain.Owner.fromJsonArray(java.lang.String)
      return types don't match
      error at com/springsource/petclinic/domain/AbstractPerson.java::0 can't
      override java.util.Collection
      com.springsource.petclinic.domain.AbstractPerson.fromJsonArray(java.lang.String)
      with java.util.Collection<com.springsource.petclinic.domain.Owner>
      com.springsource.petclinic.domain.Owner.fromJsonArray(java.lang.String)
      return types don't match

        Attachments

          Activity

            People

            Assignee:
            sschmidt Stefan Schmidt
            Reporter:
            sschmidt Stefan Schmidt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: