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

Weld does not support dynamic jsp class update

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: