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

UnsupportedOperationException: EnterpriseArchive does not support classes

XMLWordPrintable

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

      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.

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

                Created:
                Updated: