Uploaded image for project: 'JBoss Metadata'
  1. JBoss Metadata
  2. JBMETA-15

Default interface is not defined when class hierarchy for implemented interfaces has >1 interface

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 1.0.0.Beta26
    • None
    • None
    • None

      Assuming:

      abstract class Parent implements InterfaceA

      class Child extends Parent implements InterfaceB

      ...the default interface for Child should be InterfaceB as the hierarchy should not be included. The following error is encountered:

      java.lang.IllegalArgumentException: Class class org.Child does not have a default interface
      at org.jboss.metadata.lang.ClassHelper.getDefaultInterface(ClassHelper.java:65)
      at org.jboss.metadata.annotation.creator.ejb.LocalProcessor.process(LocalProcessor.java:82)
      at org.jboss.metadata.annotation.creator.ejb.LocalProcessor.process(LocalProcessor.java:42)
      at org.jboss.metadata.annotation.creator.AbstractComponentProcessor.processClass(AbstractComponentProcessor.java:234)
      at org.jboss.metadata.annotation.creator.AbstractComponentProcessor.processClass(AbstractComponentProcessor.java:202)
      at org.jboss.metadata.annotation.creator.ejb.AbstractEnterpriseBeanProcessor.process(AbstractEnterpriseBeanProcessor.java:98)
      at org.jboss.metadata.annotation.creator.ejb.AbstractEnterpriseBeanProcessor.process(AbstractEnterpriseBeanProcessor.java:50)
      at org.jboss.metadata.annotation.creator.ejb.EjbJar30Creator.create(EjbJar30Creator.java:68)
      at org.jboss.deployment.AnnotationMetaDataDeployer.processJBossMetaData(AnnotationMetaDataDeployer.java:214)
      at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:183)
      at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:90)
      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:174)
      ... 64 more

              emuckenhuber_jira Emanuel Muckenhuber (Inactive)
              arubinge@redhat.com Andrew Rubinger (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: