<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>Hi all!</div>
<div><br>
</div>
<div>While testing Weld&nbsp;2.0.0.CR4 I have been running into a DefinitionException because of an interceptor that contains one @AroundInvoke and one @PostConstruct method. Since I use this interceptor at class AND method level it declares @Target({ElementType.METHOD,
 ElementType.TYPE}). The error message seems to indicate that I can not have a lifecycle callback interceptor with @Target METHOD:&nbsp;</div>
<div><br>
</div>
<div>&quot;WELD-000619 An interceptor for lifecycle callbacks Interceptor XX declares and interceptor binding interface YYY with METHOD as its @Target.&quot;&nbsp;</div>
<div><br>
</div>
<div>Is this true? I just checked the current CDI 1.1 and Interceptor 1.2 spec and could not find this kind of restriction.&nbsp;</div>
<div><br>
</div>
<div>Jens</div>
</body>
</html>