Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-401

change GlobalAlternativeTest to work on Weld-2, Weld-1 and OWB

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.4
    • 0.5
    • Core
    • None

    Description

      Our GlobalAlternativeTest currently doesn't work under Weld-2 because this version does more checks at startup and complains about classes which are listed as <alternatives> in beans.xml but their @Alternative annotation got removed via Extension. This behaviour is ok as per the spec (it's not defined when this check needs to be done).

      This means we need to remove the <alternatives> from our GlobalAlternativeTest. But this did break older OWB versions due to a bug in the AnnotatedType handling (older OWB versions did take the Alternative info too early and directly from the Class. This got only fixed in owb-1.2.1).

      As OWB has globalAlternatives on by default and does not need the configuration via DeltaSpike, this is barely an issue in real world apps. Thus I'd say we just add the <alternatives> to the test beans.xml in case we detect OWB but do not do this otherwise.

      Attachments

        Activity

          People

            struberg Mark Struberg
            struberg Mark Struberg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: