Uploaded image for project: 'ShrinkWrap'
  1. ShrinkWrap
  2. SHRINKWRAP-419

UnsupportedOperationException: EnterpriseArchive does not support classes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • 1.1.0-alpha-4
    • None
    • None
    • None

    Description

      EnterpriseArchiveImpl extends EnterpriseContainerBase which extends ContainerBase which implements ClassContainer.

      However addClass from ClassContainer interface throws UnsupportedOperationException.

      This is not nice. MockContexts extension for Arquillian does this:

      if (appArchive instanceof ClassContainer) {
                  ((ClassContainer) appArchive).addClass(MockViewScopedContext.class);
                  ((ClassContainer) appArchive).addClass(MockConversationScopedContext.class);
              }

      To avoid such problems, and for EAR it hits UnsupportedOperationException. Very not nice.

      Attachments

        Activity

          People

            Unassigned Unassigned
            blabno Bernard Labno (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: