Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-942

CLONE owb-1.2- Signal or handle differently final methods

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.2.2
    • 1.5.0
    • New Features

    Description

      OWB does not properly handle final methods of classes.

      That leads to strange bugs, like discussed on this thread http://mail-archives.apache.org/mod_mbox/deltaspike-users/201403.mbox/browser

      In this case, there is

      public class Base implements Serializable {
      public final List getValues()

      { ... }

      }

      @Named
      @ViewAccessScoped
      public class DerivedFromBase extends Base {
      }

      In my case, the method was called on the proxy rathered that on the base class when called through an EL expression like #

      {derivedFromBase.values}

      It would be nice if OWB would
      1) scream if it encounters a "final" method. Refusing to create a proxy might be a bit harsh. Just not proxying the "final" method along with a log might be better (and easier to debug)

      or better

      2) handle differently final methods

      Attachments

        Issue Links

          Activity

            People

              struberg Mark Struberg
              lpenet Ludovic PĂ©net
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: