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

Get rid of the Record interface

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: 1.1.0.RC1
    • Component/s: GWT
    • Labels:
      None

      Description

      Re-casting this bug as a feature request. Our intent is to get rid of the Record interface entirely. We should make sure this use case is fixed along the way.

      As discussed there:
      http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/28bc80c796fee481

      If you extend an interface already extending Record, the getters won't be generated for the "intermediate" interface.

      For instance:
      public interface BarRecord extends Record {
      Property<String> bar ...;
      public String getBar();
      }

      public interface FooBarRecord extends BarRecord {
      Property<String> foo ...;
      public String getFoo();
      }

      This won't compile because FooBarRecord won't get its "getBar()" getter generated. The current workaround that we have to use is either 1. No use of inheritance, or 2. Use record.get(record.property)... which are far from being convenient.

        Attachments

          Activity

            People

            Assignee:
            amitmanjhi@google.com Amit Manjhi
            Reporter:
            iscy Pascal Patry
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: