Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-11240

Elytron LocalUserServer Overrides finalize method

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 7.1.0.ER1
    • 7.1.0.DR19
    • Security
    • None

      finalize() method can be called even when object is still in use [1]. Please change LocalUserServer not to rely on finalize() method

      LocalUserServer.java
          @Override
          protected void finalize() throws Throwable {
              deleteChallenge();
          }
      

      [1] https://www.infoq.com/articles/Fatal-Flaw-Finalizers-Phantoms

            fjuma1@redhat.com Farah Juma
            mchoma@redhat.com Martin Choma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: