[ 
https://issues.apache.org/jira/browse/XMLBEANS-555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17283438#comment-17283438
 ] 

Andreas Beeker commented on XMLBEANS-555:
-----------------------------------------

in the meantime I've replaced the inner classes for the list properties with 
two global list classes and methods references and reduced the named constants.
But it's still failing.
Next step is to provide options to skip certain generated bean methods.
The attempts are uneducated guesses, as I don't know exactly what counts 
towards the constants pool. I assume that inheritance is handled via separated 
constant pools 
(https://stackoverflow.com/questions/23948009/whats-the-size-cost-of-java-inheritance).
As every string literal is also included, I think about squishing / compressing 
the QName declarations and fill them in the static initializer, i.e. via the 
heap.

> too many constants
> ------------------
>
>                 Key: XMLBEANS-555
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-555
>             Project: XMLBeans
>          Issue Type: Bug
>    Affects Versions: Version 4.0.0
>            Reporter: Sushil Madankar
>            Priority: Critical
>             Fix For: Version 4.0.1
>
>         Attachments: DummyJokerAccountView.wsdl, 
> JokerAccountViewResponseTypeImpl.java.v3.1.0, 
> JokerAccountViewResponseTypeImpl.java.v4.0.0, 
> image-2021-02-08-10-46-23-299.png
>
>
> while generating .jar file out of  .wsdl file which is 2.20 mb in size, 
> having a multiple number of final variables, but it results in the following 
> error:
> error: too many constants
> but it works with version 3.1.0 !image-2021-02-08-10-46-23-299.png!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to