Uploaded image for project: 'CDI TCK'
  1. CDI TCK
  2. CDITCK-444

TCK tests that getStereotypes() must not be null

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.2.1.Final, 1.1.4.Final
    • None
    • None

      Actually the spec says that Bean#getStereotypes() must only return valid stereotypes. Which means that it should complain if a class which is not a Stereotype gets returned. Otoh null is a perfectly valid value and shall just get handled the same like an empty Set for that matter.

      This happens in InvalidStereotypeExtension as detected by Reinhard Sandtner. Maybe you wanted to return PlainOldAnnotation.class instead of null?

            tremes1@redhat.com Tomas Remes
            struberg Mark Struberg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: