Results 1 to 2 of 2

Thread: 1.2.3 Parameterized classes cannot be marked as BeanModels

  1. #1

    Default 1.2.3 Parameterized classes cannot be marked as BeanModels

    I have a class ContentReference.

    If I parameterize it - class ContentReference<T extends ContentType> the BeanModel mechanisms (both the BeanModelMarker interface and BeanModelMarker.BEAN tag) fail at compile time with the error below. The issue is caused by a parameterized method in ContentReference:

    T getType() and
    void setType(T type)

    [INFO] Scanning for additional dependencies: jar:file:/Users/br/.m2/repository/com/extjs/gxt/1.2.3/gxt-1.2.3.jar!/com/extjs/gxt/ui/client/data/BeanModelLookup.java
    [INFO] Computing all possible rebind results for 'com.extjs.gxt.ui.client.data.BeanModelLookup'
    [INFO] Rebinding com.extjs.gxt.ui.client.data.BeanModelLookup
    [INFO] Adding '11' new generated units
    [INFO] Validating newly compiled units
    [INFO] Removing units with errors
    [INFO] [ERROR] Errors in 'file:/Users/br/dev/projects/salesdock/marlin_plugin/target/.generated/com/extjs/gxt/ui/client/data/BeanModel_com_salesdock_marlin_ui_core_client_data_ContentReference.java'
    [INFO] [ERROR] Line 52: The method setType(ContentType) in the type ContentReference is not applicable for the arguments (Object)
    [INFO] Removing invalidated units
    [INFO] [WARN] Compilation unit 'file:/Users/br/dev/projects/salesdock/marlin_plugin/target/.generated/com/extjs/gxt/ui/client/data/BeanModel_com_salesdock_marlin_ui_core_client_data_ContentReference_Factory.java' is removed due to invalid reference(s):
    [INFO] [WARN] file:/Users/br/dev/projects/salesdock/marlin_plugin/target/.generated/com/extjs/gxt/ui/client/data/BeanModel_com_salesdock_marlin_ui_core_client_data_ContentReference.java
    [INFO] [WARN] Compilation unit 'file:/Users/br/dev/projects/salesdock/marlin_plugin/target/.generated/com/extjs/gxt/ui/client/data/BeanModelLookupImpl.java' is removed due to invalid reference(s):
    [INFO] [WARN] file:/Users/br/dev/projects/salesdock/marlin_plugin/target/.generated/com/extjs/gxt/ui/client/data/BeanModel_com_salesdock_marlin_ui_core_client_data_ContentReference_Factory.java
    [INFO] [ERROR] Unable to find recently-generated type 'com.extjs.gxt.ui.client.data.BeanModel_com_salesdock_marlin_ui_core_client_data_ContentReference
    [INFO] [ERROR] Errors in 'jar:file:/Users/br/.m2/repository/com/extjs/gxt/1.2.3/gxt-1.2.3.jar!/com/extjs/gxt/ui/client/data/BeanModelLookup.java'
    [INFO] [ERROR] Line 17: Failed to resolve 'com.extjs.gxt.ui.client.data.BeanModelLookup' via deferred binding
    [INFO] [ERROR] Cannot proceed due to previous errors

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976

    Default

    This works fine for me. Please post a testcase demonstrating the issue.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •