[JBoss JIRA] Created: (JBAS-4643) Fix org.jboss.test.xml.DDValidatorUnitTestCase (5 failures)
by Dimitris Andreadis (JIRA)
Fix org.jboss.test.xml.DDValidatorUnitTestCase (5 failures)
-----------------------------------------------------------
Key: JBAS-4643
URL: http://jira.jboss.com/jira/browse/JBAS-4643
Project: JBoss Application Server
Issue Type: Sub-task
Security Level: Public (Everyone can see)
Components: Test Suite
Reporter: Dimitris Andreadis
Assigned To: Alexey Loubyansky
Fix For: JBossAS-5.0.0.Beta3
testEjbJar Failure 5 from 165 are invalid expected:<0> but was:<5>
junit.framework.AssertionFailedError: 5 from 165 are invalid expected:<0> but was:<5>
at org.jboss.test.xml.DDValidatorUnitTestCase.validate(DDValidatorUnitTestCase.java:115)
at org.jboss.test.xml.DDValidatorUnitTestCase.testEjbJar(DDValidatorUnitTestCase.java:76)
9.162
testJBossXml Failure 3 from 143 are invalid expected:<0> but was:<3>
junit.framework.AssertionFailedError: 3 from 143 are invalid expected:<0> but was:<3>
at org.jboss.test.xml.DDValidatorUnitTestCase.validate(DDValidatorUnitTestCase.java:115)
at org.jboss.test.xml.DDValidatorUnitTestCase.testJBossXml(DDValidatorUnitTestCase.java:81)
2.797
testJBossCmpJdbc Success 0.994
testWebXml Success 1.930
testJBossWeb Failure 4 from 39 are invalid expected:<0> but was:<4>
junit.framework.AssertionFailedError: 4 from 39 are invalid expected:<0> but was:<4>
at org.jboss.test.xml.DDValidatorUnitTestCase.validate(DDValidatorUnitTestCase.java:115)
at org.jboss.test.xml.DDValidatorUnitTestCase.testJBossWeb(DDValidatorUnitTestCase.java:96)
0.455
testApplicationXml Failure 8 from 50 are invalid expected:<0> but was:<8>
junit.framework.AssertionFailedError: 8 from 50 are invalid expected:<0> but was:<8>
at org.jboss.test.xml.DDValidatorUnitTestCase.validate(DDValidatorUnitTestCase.java:115)
at org.jboss.test.xml.DDValidatorUnitTestCase.testApplicationXml(DDValidatorUnitTestCase.java:101)
0.635
testJBossApp Failure 2 from 37 are invalid expected:<0> but was:<2>
junit.framework.AssertionFailedError: 2 from 37 are invalid expected:<0> but was:<2>
at org.jboss.test.xml.DDValidatorUnitTestCase.validate(DDValidatorUnitTestCase.java:115)
at org.jboss.test.xml.DDValidatorUnitTestCase.testJBossApp(DDValidatorUnitTestCase.java:106)
0.825
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 6 months
[JBoss JIRA] Created: (JBAOP-305) annotations not found for non-generic implementations of generic interface methods
by Havoc Pennington (JIRA)
annotations not found for non-generic implementations of generic interface methods
----------------------------------------------------------------------------------
Key: JBAOP-305
URL: http://jira.jboss.com/jira/browse/JBAOP-305
Project: JBoss AOP
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Havoc Pennington
I'm not sure if this is an AOP problem or a how-jboss-is-using-AOP-on-EJB3-session-beans problem, but I'll file it here to start.
The original issue is TransactionAttribute(NEVER) being ignored on certain session bean methods, the test case / details on that are in this list post:
http://groups.google.com/group/mugshot/browse_thread/thread/bc43e0dd34c8c...
I made an AOP test case that either shows an AOP problem or shows a way jboss could easily misuse AOP.
In the AOP test case, If there is an interface Foo<T> with method frobate(T t), then you look that up in AOP as resolveAnnotation("frobate", new Class[] { Object.class })
But if you implement that interface ("class FooImpl implements Foo<Double>") then you have to look that up in AOP as
resolveAnnotation("frobate", new Class[] { Double.class }) - looking it up with the erasure (Object.class arg) will not work, it returns null for the annotation.
So if someone were iterating over methods in the interface, looking each one up on the implementing class, they would not get the annotation for any generic methods in the interface implemented in the class.
The case that's going wrong in EJB3 is a little bit more complicated, so maybe there is some attempt at handling this that isn't catching all the cases.
It looks like further investigation requires messing with jboss TxInterceptor etc. itself, which is a little bit more than I think I can bite off, but hopefully this info is a helpful start.
Thanks
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 6 months