[weld-issues] [JBoss JIRA] (WELD-2244) Unable to create proxy for large class

2016-10-18 Thread Martin Kouba (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Martin Kouba updated  WELD-2244 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Weld /  WELD-2244 
 
 
 
  Unable to create proxy for large class  
 
 
 
 
 
 
 
 
 

Change By:
 
 Martin Kouba 
 
 
 

Status:
 
 Pull Request Sent Resolved 
 
 
 

Resolution:
 
 Done 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   

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

[weld-issues] [JBoss JIRA] (WELD-2244) Unable to create proxy for large class

2016-10-17 Thread Martin Kouba (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Martin Kouba commented on  WELD-2244 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Unable to create proxy for large class  
 
 
 
 
 
 
 
 
 
 

Or maybe split it into multiple private static methods which can be called from the initializer?
 
That's one of the optimization we did in core/pull/1490 . The problem is that even if we split the static initializer there is a constant_pool size limit (among others) per class file. Also I think we cannot get rid of this initializer due to performance reasons. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   

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

[weld-issues] [JBoss JIRA] (WELD-2244) Unable to create proxy for large class

2016-10-17 Thread JIRA
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Christian Schröder commented on  WELD-2244 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Unable to create proxy for large class  
 
 
 
 
 
 
 
 
 
 
I think 2000 methods would be sufficient for my concrete use case. I assume that it would be more complicated to change the implementation and get rid of that huge initializer at all? Or maybe split it into multiple private static methods which can be called from the initializer? I did not have a closer look at the code, so I am just guessing wildly.  
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   

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

[weld-issues] [JBoss JIRA] (WELD-2244) Unable to create proxy for large class

2016-10-17 Thread Martin Kouba (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Martin Kouba commented on  WELD-2244 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Unable to create proxy for large class  
 
 
 
 
 
 
 
 
 
 
The proposed optimization is not solving the problem, it's just pushing the limits a little bit. I did a simple test similar to the reproducer and was able to generate a subclass proxy for a class with 2000 methods with the stable version of jboss-classfilewriter and 4000 methods with jboss-classfilewriter master (1.2) + https://github.com/jbossas/jboss-classfilewriter/pull/13. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   

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

[weld-issues] [JBoss JIRA] (WELD-2244) Unable to create proxy for large class

2016-10-17 Thread Martin Kouba (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Martin Kouba updated  WELD-2244 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Weld /  WELD-2244 
 
 
 
  Unable to create proxy for large class  
 
 
 
 
 
 
 
 
 

Change By:
 
 Martin Kouba 
 
 
 

Status:
 
 Pull Request Sent 
 
 
 

Git Pull Request:
 
 https://github.com/weld/core/pull/1490 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   

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

[weld-issues] [JBoss JIRA] (WELD-2244) Unable to create proxy for large class

2016-10-17 Thread Martin Kouba (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 

 Issue was automatically transitioned when Martin Kouba created pull request #1490 in GitHub 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Weld /  WELD-2244 
 
 
 
  Unable to create proxy for large class  
 
 
 
 
 
 
 
 
 

Change By:
 
 Martin Kouba 
 
 
 

Status:
 
 Open Pull Request Sent 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   

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

[weld-issues] [JBoss JIRA] (WELD-2244) Unable to create proxy for large class

2016-10-14 Thread Martin Kouba (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Martin Kouba updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Weld /  WELD-2244 
 
 
 
  Unable to create proxy for large class  
 
 
 
 
 
 
 
 
 

Change By:
 
 Martin Kouba 
 
 
 

Fix Version/s:
 
 2.4.1.Final 
 
 
 

Fix Version/s:
 
 3.0.0.Beta1 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   

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

[weld-issues] [JBoss JIRA] (WELD-2244) Unable to create proxy for large class

2016-10-10 Thread Jive JIRA Integration (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Jive JIRA Integration updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Weld /  WELD-2244 
 
 
 
  Unable to create proxy for large class  
 
 
 
 
 
 
 
 
 

Change By:
 
 Jive JIRA Integration 
 
 
 

Forum Reference:
 
 https://developer.jboss.org/message/963937#963937 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   

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

[weld-issues] [JBoss JIRA] (WELD-2244) Unable to create proxy for large class

2016-10-10 Thread Martin Kouba (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Martin Kouba commented on  WELD-2244 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Unable to create proxy for large class  
 
 
 
 
 
 
 
 
 
 
Hi Christian, it seems you're hitting one of the JVM limitations here. The truth is that your class should be ok, but if decorators/interceptors/client proxies are involved Weld has to enhance the class with implementation-specific code. In this case, Weld attempts to create a static initializer of a length that exceeds the allowed limit of 65536 bytes (see also The Code Attribute ). Note that there are other limitations of the JVM. 
In any case, we can try to optimize the implementation a little bit. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   

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

[weld-issues] [JBoss JIRA] (WELD-2244) Unable to create proxy for large class

2016-10-09 Thread JIRA
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Christian Schröder created an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Weld /  WELD-2244 
 
 
 
  Unable to create proxy for large class  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Affects Versions:
 

 2.4.0.Final 
 
 
 

Assignee:
 

 Unassigned 
 
 
 

Attachments:
 

 weld-test.zip 
 
 
 

Components:
 

 Proxies 
 
 
 

Created:
 

 09/Oct/16 9:42 AM 
 
 
 

Environment:
 
 
Windows 7 64-Bit java version "1.8.0_102" Java(TM) SE Runtime Environment (build 1.8.0_102-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode) 
 
 
 

Priority:
 
  Major 
 
 
 

Reporter:
 
 Christian Schröder 
 
 
 
 
 
 
 
 
 
 
When a proxy is created while decorating a bean with many methods, a 

WELD-001524
 erro