Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2819

Check for Instance<Event<?>> occurrences and fail fast

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 7.0.0.Alpha1
    • None
    • None
    • None

      This is a follow-up to https://issues.redhat.com/browse/WELD-2818.
      After some discussion on the spec level, it is now forbidden to have wildcard in Event and Instance (which we already check for anyway), but we should also check for a creative use such as Instance<Event<? extends Foo>>.

      Note that the specification only enforces checking this at deployment time, not in runtime via dynamic select. That is what we do now as well and I'd prefer to avoid checking runtime so as not to impose validation for every event select/fire which would, most of the time, have no purpose anyway.

              manovotn Matěj Novotný
              manovotn Matěj Novotný
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: