Uploaded image for project: 'CDI Specification Issues'
  1. CDI Specification Issues
  2. CDI-513

Clarify whether passivating pseudo-scopes are valid

XMLWordPrintable

    • Icon: Clarification Clarification
    • Resolution: Obsolete
    • Icon: Minor Minor
    • None
    • 1.2.Final
    • None
    • None

      On behalf of Jozef I copied this to a CDI ticket... See CDITCK-466
      I personally think it is clear as there is no single word which forbids this and there is a very vocal description about the single flags.


      AddingPassivatingScopeTest is illegal as addScope for passivating non-normalscopes is perfectly fine.
      There is nothing in the spec which says that a non-normalscope cannot be passivating.

      The practical use case for this is e.g. when bridging over to Spring. Those beans might need to get checked for Serializable BUT spring brings it's own proxies. So we do not need to wrap it into just another normalscoping proxy.

      Actually the test should come in 2 flavours:
      1.) RomanEmpire being Serializable -> all fine must work
      2.) RomainEmpire not Serializable -> DefinitionException

              Unassigned Unassigned
              struberg Mark Struberg (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: