[weld-issues] [JBoss JIRA] (WELD-2331) Misleading error message when Extension observer method is (wrongly) static

2017-02-28 Thread Martin Kouba (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Martin Kouba updated  WELD-2331  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Weld /  WELD-2331  
 
 
  Misleading error message when Extension observer method is (wrongly) static   
 

  
 
 
 
 

 
Change By: 
 Martin Kouba  
 
 
Status: 
 Pull Request Sent Resolved  
 
 
Resolution: 
 Done  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.2.3#72005-sha1:73be91d)  
 
 

 
   
 

  
 

  
 

   

___
weld-issues mailing list
weld-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-issues

[weld-issues] [JBoss JIRA] (WELD-2331) Misleading error message when Extension observer method is (wrongly) static

2017-02-27 Thread Antoine Sabot-Durand (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Issue was automatically transitioned when Antoine Sabot-Durand created pull request #1606 in GitHub  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Weld /  WELD-2331  
 
 
  Misleading error message when Extension observer method is (wrongly) static   
 

  
 
 
 
 

 
Change By: 
 Antoine Sabot-Durand  
 
 
Status: 
 Open Pull Request Sent  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.2.3#72005-sha1:73be91d)  
 
 

 
   
 

  
 

  
 

   

___
weld-issues mailing list
weld-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-issues

[weld-issues] [JBoss JIRA] (WELD-2331) Misleading error message when Extension observer method is (wrongly) static

2017-02-23 Thread Martin Kouba (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Martin Kouba updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Weld /  WELD-2331  
 
 
  Misleading error message when Extension observer method is (wrongly) static   
 

  
 
 
 
 

 
Change By: 
 Martin Kouba  
 
 
Fix Version/s: 
 2.4.3.Final  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.2.3#72005-sha1:73be91d)  
 
 

 
   
 

  
 

  
 

   

___
weld-issues mailing list
weld-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-issues

[weld-issues] [JBoss JIRA] (WELD-2331) Misleading error message when Extension observer method is (wrongly) static

2017-02-23 Thread Martin Kouba (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Martin Kouba assigned an issue to Antoine Sabot-Durand  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Weld /  WELD-2331  
 
 
  Misleading error message when Extension observer method is (wrongly) static   
 

  
 
 
 
 

 
Change By: 
 Martin Kouba  
 
 
Assignee: 
 Antoine Sabot-Durand  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.2.3#72005-sha1:73be91d)  
 
 

 
   
 

  
 

  
 

   

___
weld-issues mailing list
weld-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-issues

[weld-issues] [JBoss JIRA] (WELD-2331) Misleading error message when Extension observer method is (wrongly) static

2017-02-14 Thread Martin Kouba (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Martin Kouba commented on  WELD-2331  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Misleading error message when Extension observer method is (wrongly) static   
 

  
 
 
 
 

 
 See also CDI-684.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.2.3#72005-sha1:73be91d)  
 
 

 
   
 

  
 

  
 

   

___
weld-issues mailing list
weld-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-issues

[weld-issues] [JBoss JIRA] (WELD-2331) Misleading error message when Extension observer method is (wrongly) static

2017-02-07 Thread Martin Kouba (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Martin Kouba commented on  WELD-2331  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Misleading error message when Extension observer method is (wrongly) static   
 

  
 
 
 
 

 
 Hm, this might require a CDI spec clarification. I don't think it is currently forbidden to use static observer methods on extensions. However, I think it's reasonable not to allow static observers. Also there are some spec requirements which would complicate the implementation for static observer methods - i.e. if a container lifecycle event method is called outside of the observer method invocation an IllegalStateException must be thrown.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.2.3#72005-sha1:73be91d)  
 
 

 
   
 

  
 

  
 

   

___
weld-issues mailing list
weld-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/weld-issues

[weld-issues] [JBoss JIRA] (WELD-2331) Misleading error message when Extension observer method is (wrongly) static

2017-02-07 Thread Laird Nelson (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Laird Nelson created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Weld /  WELD-2331  
 
 
  Misleading error message when Extension observer method is (wrongly) static   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Affects Versions: 
 3.0.0.Beta1  
 
 
Assignee: 
 Unassigned  
 
 
Components: 
 Extensions  
 
 
Created: 
 07/Feb/17 6:19 PM  
 
 
Priority: 
  Minor  
 
 
Reporter: 
 Laird Nelson  
 

  
 
 
 
 

 
 The root cause of this bug is definitely pilot error, but read on. If you have a lifecycle event method in an Extension, and you inadvertently make it static, then the error message you get is this:  
 
 
 
 
 org.jboss.weld.exceptions.IllegalStateException: WELD-000143: Container lifecycle event method invoked outside of extension observer method invocation.
  
 
 
 
  It was not at all immediately apparent that the only problem I had was that the method was static. It would be very helpful if this condition could be probed a bit and a better error message delivered.