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

CustomData tags get lost when ITD supplied fields or methods get pushed in to the corresponding java sources

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 1.1.3.RELEASE
    • Component/s: @ CORE
    • Labels:
      None

      Description

      If a Metadata producing type tags a field or method and the member is already available in the corresponding governor, the tagged MD is lost in favour of the original MD (most likely JavaParser...MD). The tagged MD is lost in AbstractMemberHoldingTypeDetailsBuilder:

      public final boolean addMethod(MethodMetadataBuilder method) {
         if (method == null || !getDeclaredByMetadataId().equals(method.getDeclaredByMetadataId())) {
            // the method may have custom data tags which are lost here 
            return false;
         }
         onAddMethod(method);
         return declaredMethods.add(method);
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              balex Ben Alex
              Reporter:
              sschmidt Stefan Schmidt
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: