Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-580

ValueTypeCodec.STATIC_CODECS can prevent class unloading

    XMLWordPrintable

Details

    Description

      ValueTypeCodec.STATIC_CODECS is a cache of codecs which are not bound to a particular schema, but rather to a particular Class – i.e. they get everything they need from that class.

      While the cache has weak keys, it does not use weak values – which would be fine, except it is populated by a number of ReflectionBasedCodecs, each of which retain a reference to the class – which ends up being problematic, as the strong value prevents garbage collection of the codec, which in turn prevents the class from getting unreachable.

      Attachments

        # Subject Branch Project Status CR V

        Activity

          People

            rovarga Robert Varga
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: