[jira] [Created] (PLUTO-713) TCK: Contesting AnnotationPortletApplicationConfigTests_SPEC1_28_DefaultNamespaceURI

"Neil Griffin (JIRA)" <[email protected]>
Newsgroups gmane.comp.jakarta.pluto.devel
Message-ID <[email protected]>
Neil Griffin created PLUTO-713:
----------------------------------

             Summary: TCK: Contesting AnnotationPortletApplicationConfigTests_SPEC1_28_DefaultNamespaceURI
                 Key: PLUTO-713
                 URL: https://issues.apache.org/jira/browse/PLUTO-713
             Project: Pluto
          Issue Type: Bug
          Components: tck
    Affects Versions: 3.0.0
            Reporter: Neil Griffin
            Assignee: Neil Griffin
             Fix For: 3.0.1


In Section 28.1 of the Portlet 3.0 Specification titled "Portlet Application Configuration", states:
{quote}"The @PortletApplication is a type annotation that can be applied to any class in the portlet application. It may appear at most once within the portlet application."{quote}

The problem is that the the Java source for V3AnnotationPortletConfigTests  test has two {{@PortletApplication}} annotations.
{code:java|title= AnnotationPortletApplicationConfigTests_SPEC1_28_DefaultNamespaceURI.java}
@PortletApplication(
   defaultNamespaceURI = "http://www.apache.org/portals/pluto/portlet-tck_3.0"
)
@PortletConfiguration(portletName = "AnnotationPortletApplicationConfigTests_SPEC1_28_DefaultNamespaceURI")
public class AnnotationPortletApplicationConfigTests_SPEC1_28_DefaultNamespaceURI implements Portlet {
    ...
}
{code}
{code:java|title=AnnotationPortletConfigTests_SPEC2_28_EventDeclaration.java}
@PortletApplication(
   events = {
      @EventDefinition(
         qname = @PortletQName(
         localPart = "AnnotationPortletConfigTests_SPEC2_28_EventDeclaration_a", 
         namespaceURI = "http://www.apache.org/portals/pluto/portlet-tck_3.0"), 
      payloadType = java.lang.String.class
      ), @EventDefinition(
         qname = @PortletQName(
         localPart = "AnnotationPortletConfigTests_SPEC2_28_EventDeclaration_b", 
         namespaceURI = "http://www.apache.org/portals/pluto/portlet-tck_3.0"), 
      payloadType = java.lang.String.class
      )
   }
)
@PortletConfiguration(portletName = "AnnotationPortletConfigTests_SPEC2_28_EventDeclaration")
public class AnnotationPortletConfigTests_SPEC2_28_EventDeclaration implements Portlet {
    ...
}
{code}

The proposed fix would be to move the {{defaultNamespaceURI}} attribute from AnnotationPortletApplicationConfigTests_SPEC1_28_DefaultNamespaceURI.java to AnnotationPortletConfigTests_SPEC2_28_EventDeclaration.java and then remove the {{@PortletApplication}} annotation from AnnotationPortletApplicationConfigTests_SPEC1_28_DefaultNamespaceURI.java



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.