Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2062

Weld does not support dynamic jsp class update

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 2.4.0.Final
    • 2.3.1.Final
    • None
    • None

    Description

      I have a jsp class in an application. On updating the jsp class, the updated info was ignored. After further investigation, the issue is caused by the equals method on the AnnotatedTypeIdentifier.

      The annoatedType return for the changed class is the cached one
      as the AnnotatedTypeIdentifier.equals only checks for the class name
      instead of class object.

      {{@Override
      public boolean equals(Object obj) {
      if (this == obj)

      { return true; }

      if (obj instanceof AnnotatedTypeIdentifier)

      { AnnotatedTypeIdentifier they = (AnnotatedTypeIdentifier) obj; return equal(bdaId, they.bdaId) && equal(className, they.className) && equal(suffix, they.suffix) && equal(modified, they.modified) && equal(contextId, they.contextId); }

      return false;
      }}}

      The fix is to use the class instead of the className.

      Attachments

        Issue Links

          Activity

            People

              mkouba@redhat.com Martin Kouba
              emijiang6 Emily Jiang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: