[weld-issues] [JBoss JIRA] (CDITCK-589) AnnotatedTypeConfiguratorTest fails randomly

2017-06-07 Thread Mark Struberg (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mark Struberg created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 CDI TCK /  CDITCK-589  
 
 
  AnnotatedTypeConfiguratorTest fails randomly   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Affects Versions: 
 2.0.0.Final  
 
 
Assignee: 
 Tomas Remes  
 
 
Components: 
 Tests  
 
 
Created: 
 07/Jun/17 3:58 PM  
 
 
Priority: 
  Major  
 
 
Reporter: 
 Mark Struberg  
 

  
 
 
 
 

 
 AnnotatedTypeConfiguratorTest modifies the constructors of 'Cat' in an ambiguous way. In org.jboss.cdi.tck.tests.extensions.configurators.annotatedTypeConfigurator.ProcessAnnotatedTypeObserver#98  
 
 
 
 
 // remove @Inject and @Cats from constructor with parameter  
 
 
 annotatedTypeConfigurator.filterConstructors(ac -> ac.getParameters().size() > 0).findFirst().get().remove(a -> a.equals(InjectLiteral.INSTANCE))  
 
 
 .filterParams(ap -> ap.getPosition() == 0).findFirst().get().remove(a -> a.equals(Cats.CatsLiteral.INSTANCE));
  
 
 
 
   

[weld-issues] [JBoss JIRA] (CDITCK-588) AnnotatedTypeConfiguratorTest#annotatedTypesAndMemebersEqual wrongly assumes that AnnotatedTypes implement equals()

2017-06-07 Thread Mark Struberg (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mark Struberg created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 CDI TCK /  CDITCK-588  
 
 
  AnnotatedTypeConfiguratorTest#annotatedTypesAndMemebersEqual wrongly assumes that AnnotatedTypes implement equals()   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Affects Versions: 
 2.0.0.Final  
 
 
Assignee: 
 Tomas Remes  
 
 
Components: 
 Tests  
 
 
Created: 
 07/Jun/17 3:50 PM  
 
 
Priority: 
  Major  
 
 
Reporter: 
 Mark Struberg  
 

  
 
 
 
 

 
 AnnotatedTypeConfiguratorTest#annotatedTypesAndMemebersEqual wrongly assumes that AnnotatedTypes implement equals(). But I could not find where this would be defined.  In fact there are quite a few cases where identity equality makes much more sense and I could not find any good use case where one needs equals on AT.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 

[weld-issues] [JBoss JIRA] (WELD-2273) An abstract decorator class that extends a managed bean causes NPE

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


 
 
 
 

 
 
 

 
   
 Martin Kouba edited a comment on  WELD-2273  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: An abstract decorator class that extends a managed bean causes NPE   
 

  
 
 
 
 

 
 [~ljnelson] bq. I'll check the specification to see if private constructors annotated with @Inject are permitted (can't remember).A bean type must be proxyable (must have private constructor with no parameters) if an injection point resolves to a bean that has an associated decorator (see also 3.11. Unproxyable bean types). However, Weld does not perform the check if [relaxed construction|http://docs.jboss.org/weld/reference/latest/en-US/html/configure.html#relaxedConstruction] is enabled (by default in Weld SE).  -  It looks like relaxed construction does not work well with descorators though. - It works well. The only problem is a *private no-args constructor* - Java limitation. Weld should perform the check even if relaxed construction is enabled. Anyway, a simple reproducer would be really helpful here.  
 

  
 
 
 
 

 
 
 

 
 
 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-2273) An abstract decorator class that extends a managed bean causes NPE

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


 
 
 
 

 
 
 

 
   
 Martin Kouba updated  WELD-2273  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Weld /  WELD-2273  
 
 
  An abstract decorator class that extends a managed bean causes NPE   
 

  
 
 
 
 

 
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-2273) An abstract decorator class that extends a managed bean causes NPE

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


 
 
 
 

 
 
 

 
   
 Martin Kouba updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Weld /  WELD-2273  
 
 
  An abstract decorator class that extends a managed bean causes NPE   
 

  
 
 
 
 

 
Change By: 
 Martin Kouba  
 
 
Git Pull Request: 
 https://github.com/weld/core/pull/1687, https://github.com/weld/core/pull/1689  
 

  
 
 
 
 

 
 
 

 
 
 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-2273) An abstract decorator class that extends a managed bean causes NPE

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


 
 
 
 

 
 
 

 
   
 Martin Kouba updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Weld /  WELD-2273  
 
 
  An abstract decorator class that extends a managed bean causes NPE   
 

  
 
 
 
 

 
Change By: 
 Martin Kouba  
 
 
Fix Version/s: 
 2.4.4.Final  
 
 
Fix Version/s: 
 3.0.1.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