[
https://issues.apache.org/jira/browse/XMLBEANS-555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17284017#comment-17284017
]
Andreas Beeker commented on XMLBEANS-555:
-----------------------------------------
[^minimize-constants.patch]
^added an unpolished patch missing a test and ant target (XmlBean class) for
the new partialsMethods option, apart of that the following was changed:^
* ^get*List methods now use a global class + method references^
* ^QNAME/-SET constants are now collected in an array instead of being
individual named^
* ^generated methods can be restricted^
^To test it, you need slf4j-api-1.7.30.jar and xmlbeans-4.0.1.jar (trunk*) in a
lib directory and execute it via:^
^> java -cp "lib/*" org.apache.xmlbeans.impl.tool.SchemaCompiler -d out -src
src -partialMethods "ALL,-GET_LIST,-XGET_LIST" DummyJokerAccountView.wsdl^
^*) ... to compile xmlbeans, download the svn repo
([https://svn.apache.org/repos/asf/xmlbeans/trunk),|https://svn.apache.org/repos/asf/xmlbeans/trunk)]
apply the patch and package it via ant (use "> ant package")^
^btw. this won't get committed into the trunk until I get a green light from
you _(just joking)_^
> 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: Minor
> 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, minimize-constants.patch
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]