[jboss-jira] [JBoss JIRA] Created: (JBMDR-51) AnnotationCreator annotations don't implement equals correctly

Scott M Stark (JIRA) jira-events at lists.jboss.org
Fri Oct 31 00:00:20 EDT 2008


AnnotationCreator annotations don't implement equals correctly
--------------------------------------------------------------

                 Key: JBMDR-51
                 URL: https://jira.jboss.org/jira/browse/JBMDR-51
             Project: JBoss MetaData Repository
          Issue Type: Bug
          Components: Annotations
    Affects Versions: JBossMDR.2.0.0.GA
            Reporter: Scott M Stark


See the org.jboss.test.annotation.factory.test.AnnotationCreatorTest.testEquals which fails with:

junit.framework.AssertionFailedError: {type=type, subtype=subtype} != @org.jboss.test.annotation.factory.support.Name(type=, subtype=)
	at junit.framework.Assert.fail(Assert.java:47)
	at junit.framework.Assert.assertTrue(Assert.java:20)
	at junit.framework.Assert.assertFalse(Assert.java:34)
	at org.jboss.test.annotation.factory.test.AnnotationCreatorTest.testEquals(AnnotationCreatorTest.java:177)

The AnnotationCreatorTest generated Name(type="type",subtype="subtype") annotation is seen to be equal to the jdk Name(type="",subtype="")

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list