-
Notifications
You must be signed in to change notification settings - Fork 15
The fluent plugin 2.0.3 generates bad code #5
Comments
Reported by hr_stoyanov |
Was assigned to hchar |
hchar said: |
hchar said: http://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd I could generate all the sources with the fluent API and compile succesfully. I Can you please attach or email me a copy of the XSD that caused you this problem |
hchar said: |
hchar said: |
hchar said: |
hr_stoyanov said:
|
hchar said: Anyway, I just tried out the fluent api plugins both on jaxb-ri-20070413 (ie <xjc destdir="$ {src.dir} " Using jaxb-fluent-api-2.0.3.jar, it generates: public CodeType withContent(Serializable... values) { { getContent().add(value); } return this; Using jaxb-fluent-api-2.1.3.jar, it generates: public CodeType withContent(Serializable... values) { { getContent().add(value); } } |
hchar said: |
hr_stoyanov said:
|
hchar said: |
hr_stoyanov said: My theory is that Sun made a huge mistake by including JAX-WS 2.0 in the jdk1.6. Btw, where is the link for 2.0.x fluent API download? |
hr_stoyanov said: However, there still seems to be a problem with fluent-2.1.3 and JAxb-2.1.3 |
hchar said:
No I haven't. I avoid using jdk1.6 and jaxb together. I concur that it is a
They are all located with URL of the pattern: https://jaxb2-commons.dev.java.net/fluent-api/release/2.0.x/jaxb-fluent-api-2.0.x.jar (Just substitute "x" with the actual version number) |
hchar said: |
Marked as won't fix on Monday, May 14th 2007, 1:34:48 pm |
This issue was imported from java.net JIRA JAXB2_COMMONS-5 |
While generating Java code off XHTML schema with xjc, the fluent plugin generated:
class AType{
....
public AType withType(String[]... values) {
for (String value: values)
{ getType().add(value); }
return this;
}
}
but it should have generated "withType(String... values)". The resulting code
does not compile!
Environment
Operating System: All
Platform: All
Affected Versions
[current]
The text was updated successfully, but these errors were encountered: