JAXB-XJC Xpropertyaccessors [英] JAXB-XJC Xpropertyaccessors

查看:89
本文介绍了JAXB-XJC Xpropertyaccessors的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据JAXB规范 http://jaxb.java.net/2.2.4 /docs/xjc.html 如果要运行JAXB-XJC编译器,则可以传递的扩展名/自变量之一是-Xpropertyaccessors,即使在每个JAXB-RI中都已指定了该扩展名/自变量,直到最新当我尝试通过此参数运行它时,仍然有一个2.2.5u2,当我运行它时,在帮助菜单中未指定无法识别的参数-Xpropertyaccessors".对于我来说,对属性而不是对字段具有访问级别很重要.

Per JAXB specification http://jaxb.java.net/2.2.4/docs/xjc.html if you want to run the JAXB-XJC compiler, one of the of the extensions/arguments you may pass is -Xpropertyaccessors even though it has been specfied in each of JAXB-RI till the latest one 2.2.5u2 still when I try to run it passing this argument I get 'unrecognized parameter -Xpropertyaccessors' is not specified in the help menu when I run it. It is important for me to have the access levels on properties not fields.

推荐答案

我已经跟踪了JAXB RI主管,显然该插件已存在但未启用.该问题将在JAXB RI的2.1.14版和2.2.6版中修复.我建议输入一个错误,以便您能够跟踪问题的状态.

I have followed up with the JAXB RI lead, apparently the plugin is there but not enabled. The issue will be fixed in versions 2.1.14 and 2.2.6 of the JAXB RI. I would recommend entering a bug so that you will be able to track the status of the issue.

这篇关于JAXB-XJC Xpropertyaccessors的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆