<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
According to the spec, BeanManager.resolveInterceptors() should
throw IAE if two instances of the same interceptor binding type are
given.<br>
<br>
o.j.weld.tests.interceptors.tb.GenericDAO is annotated @Tx(0) and
its method find() is annotated @Tx(1). The annotation's only member
is <b>Nonbinding</b>.<br>
<br>
- So @Tx(0) and @Tx(1) are considered to be the _same_ binding? <br>
- The spec allows (doesn't disallow) methods to be annotated with
the same binding type as the class, right?<br>
- However, calling resolveInterceptors with these two should throw
IAE? Currently it does not. <br>
<br>
I've made fixes for WELD-999 and now resolveInterceptors does in
fact throw IAE in this case. But I guess I now have to remove
duplicate bindings before calling resolveInterceptors in cases where
the method of a bean is annotated with the same binding type as the
bean itself.<br>
<br>
Am I wrong in assuming that @Tx(0) and @Tx(1) are the same binding?<br>
<br>
Regards<br>
Marko<br>
<br>
<br>
</body>
</html>