eclipse-ee4j / jaxb-ri

Jaxb RI
https://eclipse-ee4j.github.io/jaxb-ri/
BSD 3-Clause "New" or "Revised" License
205 stars 111 forks source link

Generated code produced by wsimport issues compilation warnings #384

Open Tomas-Kraus opened 17 years ago

Tomas-Kraus commented 17 years ago

Hi, I am using wsimport (version 2.1.1) an thus xjc to generate client side classes and I get warnings in generated files. I use a customization file that contains the following line:

Using this option, I get interfaces generated and implementations. Here is a summary of warnings I get: In class ObjectFactory private final static Void _useJAXBProperties = null; The field ObjectFactory._useJAXBProperties is never read locally return new JAXBElement(_GetList_QNAME, ((Class) GetListImpl.class), null, ((GetListImpl) value)); Class is a raw type. References to generic type Class should be parameterized Type safety: The expression of type Class needs unchecked conversion to conform to Class In class JAXBContextFactory: return JAXBContext.newInstance(r,properties); Type safety: The expression of type Map needs unchecked conversion to conform to Map Class[] r = new Class[classes.length]; Class is a raw type. References to generic type Class should be parameterized I get a total of 22 warnings, having an important number of warnings in code may confuse programmers and make them unaware of other important warnings. Moreover we use static code analysis tools (developed by our test and code quality department) that will depreciate code. Please see details at [http://forums.java.net/jive/thread.jspa?](http://forums.java.net/jive/thread.jspa?) threadID=28194&tstart=30 #### Environment Operating System: All Platform: All #### Affected Versions [2.1.3]
Tomas-Kraus commented 6 years ago
Tomas-Kraus commented 17 years ago

@glassfishrobot Commented Reported by francklucas@java.net

Tomas-Kraus commented 17 years ago

@glassfishrobot Commented Was assigned to jaxb-issues

Tomas-Kraus commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA JAXB-384