Skip to main content

Please open JAXB2 source as soon as possible

7 replies [Last post]
wangzaixiang
Offline
Joined: 2004-11-24
Points: 0

Although JAXB2 is declared as very usable, but steal much bugs.

eg, the @XmlElementWrapper/@XmlElements binding not works in the current binary boundle.

also, if you declare a java.sql.Date field and try to marshal the instance, then a CCE throws and no useful message at all.

also, if u declare a field with @XmlAttribute(required=true), then in the marshal output, you will find something like:
, it means the attribute's name is used with ##default not the field name.

I think all this things is easy to solved, and open source is the way to speed up the process. More people can look at the source, writing test case for it, and improve it to be stable.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
wangzaixiang
Offline
Joined: 2004-11-24
Points: 0

> this forum, and sun team will fix it. I don't think
> that "open source" is really a solution for something
> that is being developed by Sun and is in its early
> stages. You can look at it, but to change?

Maybe you are right because you dont like OpenSource. It looks that most opensource project is open sourced at its from, or a very initial stage, but they involves well.

To permit others observe the source code is good than not to do this, also, permit other commiters to commit bugfix or changes is good that only observe the source.

For me, If i can only view the code and not able change it, i can do:
1. debug the code and learn what it works
2. debug the code to find errors(maybe error of mine or the JAXB2)
3. determine what i can do in our projects or future projects.

kohsuke
Offline
Joined: 2003-06-09
Points: 0

We are planning an early access drop shortly. And then we'll plan to post regular weekly drops to java.net.

So stay tuned...

kirillcool
Offline
Joined: 2004-11-17
Points: 0

If you need the source code for the jaxb-api.jar, you can get it at https://jaxb.dev.java.net/servlets/ProjectDocumentList?folderID=2780&exp...

As the name "early access" indicates, the implementation is not mature and subject to changes. In case you find a bug, submit your sample schema to this forum, and sun team will fix it. I don't think that "open source" is really a solution for something that is being developed by Sun and is in its early stages. You can look at it, but to change?

pelegri
Offline
Joined: 2003-06-06
Points: 0

re: changes...

We expect the source to be released under JRL, so developers will be able to change their local copies.

Insofar changing the main copy, no open source / community / whatever process I know allows undiscriminate changes to the code base. In all cases I know there is a set of 'committers' that are allowed, and the typical arrangement has some sort of progression "user" -> "bug reporter" -> "fix submitter" -> "committer", with increasing expertise, commitments, and resposibilities.

So, I'd encourage developers to start by using, then understanding the code...

wangzaixiang
Offline
Joined: 2004-11-24
Points: 0

I am the guy who starting use it and try to understand it.

But also, as a early access build, there is always bugs, useless helps etc, It is difficult to understand or using it well without source code.

So, another way for most java fans, choosing a decompiler tool to learn the code. ?

kohsuke
Offline
Joined: 2003-06-09
Points: 0

We are planning to start the weekly drops of the JAXB RI 2.0 binaries shortly, which will give me the chance to fix bugs ande deliver fixes quickly to you.

wangzaixiang
Offline
Joined: 2004-11-24
Points: 0

personaly, i am very interesting with JAXB2, since it provide a idea solution to process XML in java world than SAX, DOM and others. and i hope to using JAXB2 in our projects.

Maybe JAXB2 team maybe worry that the JAXB2 spec is not final and the src should changed as needed, if open source, the src depends on jaxb2 should changed also. I think this is not a critical issue, since java is very easy to be refract, than C or other language. anymore, is not the JAXB2 spec something stable now?