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

Columns of type Short generate ShortRecord class incorrectly.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Deferred
    • Affects Version/s: 1.1.0.M3
    • Fix Version/s: 1.1.0.RC1
    • Component/s: GWT
    • Labels:
      None

      Description

      Columns of type Short generate ShortRecord class incorrectly for GWT. The object should be transferred directly.

      I think that the problem lies with:

      addon-gwt/src/main/java/org/springframework/roo/addon/gwt/GwtMetadata.java

      On the line where it tests for a domain object:

      boolean isDomainObject = !isEnum && !isShared(returnType) && !(returnType.equals(JavaType.BOOLEAN_OBJECT) || returnType.equals(JavaType.INT_OBJECT) || returnType.isPrimitive() ||
      returnType.equals(JavaType.LONG_OBJECT) || returnType.equals(JavaType.STRING_OBJECT) || returnType.equals(JavaType.DOUBLE_OBJECT) || returnType.equals(JavaType.FLOAT_OBJECT) || returnType.equals(new JavaType("java.util.Date")));

      It seems like this list should also include Short, Char and Byte.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jtyrrell James Tyrrell
              Reporter:
              yonas Yonas Jongkind
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: