[jira] [Updated] (CXFXJC-44) cxf-xjc-dv generates compilation failure when XJC simple binding mode is used

2023-05-30 Thread Andriy Redko (Jira)


 [ 
https://issues.apache.org/jira/browse/CXFXJC-44?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andriy Redko updated CXFXJC-44:
---
Fix Version/s: 3.3.3
   4.0.1

> cxf-xjc-dv generates compilation failure when XJC simple binding mode is used
> -
>
> Key: CXFXJC-44
> URL: https://issues.apache.org/jira/browse/CXFXJC-44
> Project: CXF XJC Utils
>  Issue Type: Bug
>  Components: DV Plugin
>Affects Versions: 4.0.0
>Reporter: Jan Litvik
>Assignee: Andriy Redko
>Priority: Major
> Fix For: 3.3.3, 4.0.1
>
>
> I am using cxf-xjc-plugin v 4.0.0 to generate java code from xsd. 
> Java code is generated without issue until I use cxf-xjc-dv(v 4.0.0) plugin.
> In this case Compilation failure is thrown: java.util.List is abstract; 
> cannot be instantiated
> The problematic piece of code: 
> List andsAndOrsAndNots = new List();
> Issue is similar to this https://issues.apache.org/jira/browse/CXFXJC-7
> I investigated the behavior and found out that issue occurs when binding file 
> is configured and it contains xjc:simple binding mode.
> When XJC simple binding mode or cxf-xjc-dv plugin is not used, java code is 
> generated but it does not meet our requirements.
>  
> *Schema definition snippet:*
> {code:java}
>     
>         
>             
>                 
>                 
>                 
>                 
>                     
>                     
>                     
>                     
>                 
>             
>         
>     
>     
>         
>             
>                 
>                 
>                 
>                 
>                     
> 
>     
>     
>         
>             
>                 
>                 
>                 
>                 
>             
>         
>         
> 
>         
>             
>                 
>                 
>                 
>                 
>             
>         
>         
> 
>         
>             
>         
>     
> {code}
>  
> *Maven:*
> {code:java}
>             
>                 org.apache.cxf
>                 cxf-xjc-plugin
>                 4.0.0
>                 
>                     
>                         xjc
>                         generate-sources
>                         
>                             xsdtojava
>                         
>                         
>                             
>                                 
>                                     
> ${basedir}/src/main/resources/query.xsd
>                                     
>                                         
> ${basedir}/src/main/jaxbconfig/config_jaxb.xjb
>                                     true
>                                     
>                                         -Xdv
>                                     
>                                 
>                             
>                             
>                                 
>                                     
> org.apache.cxf.xjcplugins:cxf-xjc-dv:4.0.0
>                             
>                         
>                     
>                 
>              {code}
> *JAXB binding config:*
> {code:java}
> https://jakarta.ee/xml/ns/jaxb";
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema";
>     xmlns:xjc= "http://java.sun.com/xml/ns/jaxb/xjc"; version="3.0">
>     
>     
>         
>         
>     
>     
>      {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Resolved] (CXFXJC-44) cxf-xjc-dv generates compilation failure when XJC simple binding mode is used

2023-05-30 Thread Andriy Redko (Jira)


 [ 
https://issues.apache.org/jira/browse/CXFXJC-44?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andriy Redko resolved CXFXJC-44.

Resolution: Fixed

> cxf-xjc-dv generates compilation failure when XJC simple binding mode is used
> -
>
> Key: CXFXJC-44
> URL: https://issues.apache.org/jira/browse/CXFXJC-44
> Project: CXF XJC Utils
>  Issue Type: Bug
>  Components: DV Plugin
>Affects Versions: 4.0.0
>Reporter: Jan Litvik
>Assignee: Andriy Redko
>Priority: Major
> Fix For: 3.3.3, 4.0.1
>
>
> I am using cxf-xjc-plugin v 4.0.0 to generate java code from xsd. 
> Java code is generated without issue until I use cxf-xjc-dv(v 4.0.0) plugin.
> In this case Compilation failure is thrown: java.util.List is abstract; 
> cannot be instantiated
> The problematic piece of code: 
> List andsAndOrsAndNots = new List();
> Issue is similar to this https://issues.apache.org/jira/browse/CXFXJC-7
> I investigated the behavior and found out that issue occurs when binding file 
> is configured and it contains xjc:simple binding mode.
> When XJC simple binding mode or cxf-xjc-dv plugin is not used, java code is 
> generated but it does not meet our requirements.
>  
> *Schema definition snippet:*
> {code:java}
>     
>         
>             
>                 
>                 
>                 
>                 
>                     
>                     
>                     
>                     
>                 
>             
>         
>     
>     
>         
>             
>                 
>                 
>                 
>                 
>                     
> 
>     
>     
>         
>             
>                 
>                 
>                 
>                 
>             
>         
>         
> 
>         
>             
>                 
>                 
>                 
>                 
>             
>         
>         
> 
>         
>             
>         
>     
> {code}
>  
> *Maven:*
> {code:java}
>             
>                 org.apache.cxf
>                 cxf-xjc-plugin
>                 4.0.0
>                 
>                     
>                         xjc
>                         generate-sources
>                         
>                             xsdtojava
>                         
>                         
>                             
>                                 
>                                     
> ${basedir}/src/main/resources/query.xsd
>                                     
>                                         
> ${basedir}/src/main/jaxbconfig/config_jaxb.xjb
>                                     true
>                                     
>                                         -Xdv
>                                     
>                                 
>                             
>                             
>                                 
>                                     
> org.apache.cxf.xjcplugins:cxf-xjc-dv:4.0.0
>                             
>                         
>                     
>                 
>              {code}
> *JAXB binding config:*
> {code:java}
> https://jakarta.ee/xml/ns/jaxb";
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema";
>     xmlns:xjc= "http://java.sun.com/xml/ns/jaxb/xjc"; version="3.0">
>     
>     
>         
>         
>     
>     
>      {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)