users@jaxb.java.net

Re: Building JAXB from CVS

From: Hanson Char <hanson.char_at_gmail.com>
Date: Tue, 31 Jan 2006 22:45:30 -0800

In relation to Eclipse compilation problem of JAXB 2.0, further
investigation (by fixing the build path) seems to reduce the number of
errors to only two (instead of many) related to Generics return type
so I reported them to Eclipse for bug fixes.
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=125956)

However, there are quite a number of compiler warnings generated by
Eclipse on JAXB 2.0, and these warnings look pretty valid. Is the
JAXB 2.0 team aware of these issues/warnings ?

They may be of use (to make the source code cleaner) so I included
them below (together with the 2 specific errors Eclipse failed to
compile).

Hanson

Error The return type is incompatible with RuntimeClassInfo.getLocatorField()
RuntimeClassInfoImpl.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 194

Error The return type is incompatible with RuntimeLeafInfo.getTransducer()
RuntimeEnumLeafInfoImpl.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 31

Warning Type safety: The constructor ArrayList(Collection) belongs
to the raw type ArrayList. References to generic type ArrayList<E>
should be parameterized JClass.java JAXB
2.x/codemodel/src/com/sun/codemodel line 268 January 31, 2006
10:28:20 PM 1703
Warning Type safety: The expression of type ArrayList needs
unchecked conversion to conform to List<JClass> JClass.java JAXB
2.x/codemodel/src/com/sun/codemodel line 268 January 31, 2006
10:28:20 PM 1702
Warning The serializable class JClassAlreadyExistsException does
not declare a static final serialVersionUID field of type long
JClassAlreadyExistsException.java JAXB
2.x/codemodel/src/com/sun/codemodel line 28 January 31, 2006
10:28:20 PM 1701
Warning Type safety: The method put(Object, Object) belongs to the
raw type HashMap. References to generic type HashMap<K,V> should be
parameterized JCodeModel.java JAXB
2.x/codemodel/src/com/sun/codemodel line 304 January 31, 2006
10:28:20 PM 1698
Warning The serializable class JCommentPart does not declare a
static final serialVersionUID field of type long JCommentPart.java
  JAXB 2.x/codemodel/src/com/sun/codemodel line 21 January 31,
2006 10:28:20 PM 1696
Warning The label outer is never explicitly referenced
JDefinedClass.java JAXB 2.x/codemodel/src/com/sun/codemodel line
570 January 31, 2006 10:28:20 PM 1693
Warning The serializable class JDocComment does not declare a
static final serialVersionUID field of type long JDocComment.java
 JAXB 2.x/codemodel/src/com/sun/codemodel line 35 January 31,
2006 10:28:20 PM 1691
Warning Type safety: The cast from Class<capture-of ?> to Class<?
extends Annotation> is actually checking against the erased type Class
   TypedAnnotationWriter.java JAXB
2.x/codemodel/src/com/sun/codemodel line 81 January 31, 2006
10:28:20 PM 1678
Warning Type safety: The constructor TypedAnnotationWriter(Class,
Class, JAnnotationUse) belongs to the raw type TypedAnnotationWriter.
References to generic type TypedAnnotationWriter<A,W> should be
parameterized TypedAnnotationWriter.java JAXB
2.x/codemodel/src/com/sun/codemodel line 82 January 31, 2006
10:28:20 PM 1679
Warning Type safety: The constructor TypedAnnotationWriter(Class,
Class, JAnnotationUse) belongs to the raw type TypedAnnotationWriter.
References to generic type TypedAnnotationWriter<A,W> should be
parameterized TypedAnnotationWriter.java JAXB
2.x/codemodel/src/com/sun/codemodel line 144 January 31, 2006
10:28:20 PM 1680
Warning Type safety: The method isAssignableFrom(Class) belongs to
the raw type Class. References to generic type Class<T> should be
parameterized TypedAnnotationWriter.java JAXB
2.x/codemodel/src/com/sun/codemodel line 181 January 31, 2006
10:28:20 PM 1681
Warning Type safety: The cast from Object to W is actually checking
against the erased type JAnnotationWriter
TypedAnnotationWriter.java JAXB 2.x/codemodel/src/com/sun/codemodel
   line 194 January 31, 2006 10:28:20 PM 1682
Warning Type safety: The cast from JAnnotationWriter to W is
actually checking against the erased type JAnnotationWriter
TypedAnnotationWriter.java JAXB 2.x/codemodel/src/com/sun/codemodel
   line 203 January 31, 2006 10:28:20 PM 1683
Warning Type safety: The constructor TypedAnnotationWriter(Class,
Class, JAnnotationUse) belongs to the raw type TypedAnnotationWriter.
References to generic type TypedAnnotationWriter<A,W> should be
parameterized TypedAnnotationWriter.java JAXB
2.x/codemodel/src/com/sun/codemodel line 203 January 31, 2006
10:28:20 PM 1684
Warning Type safety: The return type Iterator for _implements()
from the type JStaticJavaFile.JStaticClass needs unchecked conversion
to conform to Iterator<JClass> from the type JClass
JStaticJavaFile.java JAXB 2.x/codemodel/src/com/sun/codemodel/fmt
 line 213 January 31, 2006 10:28:20 PM 1674
Warning The local variable m is never read
AnnotationUseTest.java JAXB 2.x/codemodel/test line 50
January 31, 2006 10:28:22 PM 1749
Warning The local variable ec1 is never read
AnnotationUseTest.java JAXB 2.x/codemodel/test line 60
January 31, 2006 10:28:22 PM 1750
Warning The local variable invocation is never read
ForEachTest.java JAXB 2.x/codemodel/test line 58 January 31,
2006 10:28:22 PM 1748
Warning The local variable param5 is never read VarArgsTest.java
   JAXB 2.x/codemodel/test line 77 January 31, 2006 10:28:22 PM
  1745
Warning The local variable typearray is never read
VarArgsTest.java JAXB 2.x/codemodel/test line 88 January 31,
2006 10:28:22 PM 1746
Warning The local variable invocation is never read
VarArgsTest.java JAXB 2.x/codemodel/test line 90 January 31,
2006 10:28:22 PM 1747
Warning The annotation type XmlAttribute should not be used as a
superinterface for XmlAttributeQuick XmlAttributeQuick.java JAXB
2.x/runtime/build/src/com/sun/xml/bind/v2/model/annotation line 9
 January 31, 2006 10:28:22 PM 1744
Warning The annotation type XmlElementDecl should not be used as a
superinterface for XmlElementDeclQuick XmlElementDeclQuick.java
JAXB 2.x/runtime/build/src/com/sun/xml/bind/v2/model/annotation
line 9 January 31, 2006 10:28:22 PM 1743
Warning The annotation type XmlElement should not be used as a
superinterface for XmlElementQuick XmlElementQuick.java JAXB
2.x/runtime/build/src/com/sun/xml/bind/v2/model/annotation line 9
 January 31, 2006 10:28:22 PM 1742
Warning The annotation type XmlElementRef should not be used as a
superinterface for XmlElementRefQuick XmlElementRefQuick.java
JAXB 2.x/runtime/build/src/com/sun/xml/bind/v2/model/annotation
line 9 January 31, 2006 10:28:22 PM 1741
Warning The annotation type XmlElementRefs should not be used as a
superinterface for XmlElementRefsQuick XmlElementRefsQuick.java
JAXB 2.x/runtime/build/src/com/sun/xml/bind/v2/model/annotation
line 10 January 31, 2006 10:28:22 PM 1740
Warning The annotation type XmlEnum should not be used as a
superinterface for XmlEnumQuick XmlEnumQuick.java JAXB
2.x/runtime/build/src/com/sun/xml/bind/v2/model/annotation line 9
 January 31, 2006 10:28:22 PM 1738
Warning Type safety: The return type Class for value() from the
type XmlEnumQuick needs unchecked conversion to conform to Class<?>
from the type XmlEnum XmlEnumQuick.java JAXB
2.x/runtime/build/src/com/sun/xml/bind/v2/model/annotation line 31
  January 31, 2006 10:28:22 PM 1739
Warning The annotation type XmlRootElement should not be used as a
superinterface for XmlRootElementQuick XmlRootElementQuick.java
JAXB 2.x/runtime/build/src/com/sun/xml/bind/v2/model/annotation
line 9 January 31, 2006 10:28:22 PM 1737
Warning The annotation type XmlSchema should not be used as a
superinterface for XmlSchemaQuick XmlSchemaQuick.java JAXB
2.x/runtime/build/src/com/sun/xml/bind/v2/model/annotation line 11
  January 31, 2006 10:28:22 PM 1736
Warning The annotation type XmlTransient should not be used as a
superinterface for XmlTransientQuick XmlTransientQuick.java JAXB
2.x/runtime/build/src/com/sun/xml/bind/v2/model/annotation line 9
 January 31, 2006 10:28:22 PM 1735
Warning The annotation type XmlType should not be used as a
superinterface for XmlTypeQuick XmlTypeQuick.java JAXB
2.x/runtime/build/src/com/sun/xml/bind/v2/model/annotation line 9
 January 31, 2006 10:28:22 PM 1734
Warning The annotation type XmlValue should not be used as a
superinterface for XmlValueQuick XmlValueQuick.java JAXB
2.x/runtime/build/src/com/sun/xml/bind/v2/model/annotation line 9
 January 31, 2006 10:28:22 PM 1733
Warning Type safety: The constructor Accessor(Class) belongs to the
raw type Accessor. References to generic type Accessor<BeanT,ValueT>
should be parameterized FieldAccessor_Boolean.java JAXB
2.x/runtime/build/src/com/sun/xml/bind/v2/runtime/reflect/opt line
15 January 31, 2006 10:28:22 PM 1732
Warning Type safety: The constructor Accessor(Class) belongs to the
raw type Accessor. References to generic type Accessor<BeanT,ValueT>
should be parameterized FieldAccessor_Character.java JAXB
2.x/runtime/build/src/com/sun/xml/bind/v2/runtime/reflect/opt line
15 January 31, 2006 10:28:21 PM 1731
Warning Type safety: The constructor Accessor(Class) belongs to the
raw type Accessor. References to generic type Accessor<BeanT,ValueT>
should be parameterized FieldAccessor_Double.java JAXB
2.x/runtime/build/src/com/sun/xml/bind/v2/runtime/reflect/opt line
15 January 31, 2006 10:28:21 PM 1730
Warning Type safety: The constructor Accessor(Class) belongs to the
raw type Accessor. References to generic type Accessor<BeanT,ValueT>
should be parameterized FieldAccessor_Float.java JAXB
2.x/runtime/build/src/com/sun/xml/bind/v2/runtime/reflect/opt line
15 January 31, 2006 10:28:21 PM 1729
Warning Type safety: The constructor Accessor(Class) belongs to the
raw type Accessor. References to generic type Accessor<BeanT,ValueT>
should be parameterized FieldAccessor_Integer.java JAXB
2.x/runtime/build/src/com/sun/xml/bind/v2/runtime/reflect/opt line
15 January 31, 2006 10:28:21 PM 1728
Warning Type safety: The constructor Accessor(Class) belongs to the
raw type Accessor. References to generic type Accessor<BeanT,ValueT>
should be parameterized FieldAccessor_Long.java JAXB
2.x/runtime/build/src/com/sun/xml/bind/v2/runtime/reflect/opt line
15 January 31, 2006 10:28:21 PM 1727
Warning Type safety: The constructor Accessor(Class) belongs to the
raw type Accessor. References to generic type Accessor<BeanT,ValueT>
should be parameterized FieldAccessor_Short.java JAXB
2.x/runtime/build/src/com/sun/xml/bind/v2/runtime/reflect/opt line
15 January 31, 2006 10:28:21 PM 1726
Warning Type safety: The constructor Accessor(Class) belongs to the
raw type Accessor. References to generic type Accessor<BeanT,ValueT>
should be parameterized MethodAccessor_Boolean.java JAXB
2.x/runtime/build/src/com/sun/xml/bind/v2/runtime/reflect/opt line
15 January 31, 2006 10:28:21 PM 1725
Warning Type safety: The constructor Accessor(Class) belongs to the
raw type Accessor. References to generic type Accessor<BeanT,ValueT>
should be parameterized MethodAccessor_Character.java JAXB
2.x/runtime/build/src/com/sun/xml/bind/v2/runtime/reflect/opt line
15 January 31, 2006 10:28:21 PM 1724
Warning Type safety: The constructor Accessor(Class) belongs to the
raw type Accessor. References to generic type Accessor<BeanT,ValueT>
should be parameterized MethodAccessor_Double.java JAXB
2.x/runtime/build/src/com/sun/xml/bind/v2/runtime/reflect/opt line
15 January 31, 2006 10:28:21 PM 1723
Warning Type safety: The constructor Accessor(Class) belongs to the
raw type Accessor. References to generic type Accessor<BeanT,ValueT>
should be parameterized MethodAccessor_Float.java JAXB
2.x/runtime/build/src/com/sun/xml/bind/v2/runtime/reflect/opt line
15 January 31, 2006 10:28:21 PM 1722
Warning Type safety: The constructor Accessor(Class) belongs to the
raw type Accessor. References to generic type Accessor<BeanT,ValueT>
should be parameterized MethodAccessor_Integer.java JAXB
2.x/runtime/build/src/com/sun/xml/bind/v2/runtime/reflect/opt line
15 January 31, 2006 10:28:21 PM 1721
Warning Type safety: The constructor Accessor(Class) belongs to the
raw type Accessor. References to generic type Accessor<BeanT,ValueT>
should be parameterized MethodAccessor_Long.java JAXB
2.x/runtime/build/src/com/sun/xml/bind/v2/runtime/reflect/opt line
15 January 31, 2006 10:28:21 PM 1720
Warning Type safety: The constructor Accessor(Class) belongs to the
raw type Accessor. References to generic type Accessor<BeanT,ValueT>
should be parameterized MethodAccessor_Short.java JAXB
2.x/runtime/build/src/com/sun/xml/bind/v2/runtime/reflect/opt line
15 January 31, 2006 10:28:21 PM 1719
Warning The import java.util.concurrent.Future is never used
IDResolver.java JAXB 2.x/runtime/src/com/sun/xml/bind line 3
January 31, 2006 10:28:26 PM 2165
Warning The import java.util.concurrent.Executors is never used
IDResolver.java JAXB 2.x/runtime/src/com/sun/xml/bind line 5
January 31, 2006 10:28:26 PM 2166
Warning The serializable class AccessorException does not declare a
static final serialVersionUID field of type long
AccessorException.java JAXB 2.x/runtime/src/com/sun/xml/bind/api
line 22 January 31, 2006 10:28:26 PM 2164
Warning The import java.util.List is never used
TypeReference.java JAXB 2.x/runtime/src/com/sun/xml/bind/api
line 5 January 31, 2006 10:28:26 PM 2163
Warning Type safety: The expression of type Stack needs unchecked
conversion to conform to Stack<Object> DataWriter.java JAXB
2.x/runtime/src/com/sun/xml/bind/marshaller line 170 January 31,
2006 10:28:26 PM 2162
Warning Type safety: The method put(Object, Object) belongs to the
raw type HashMap. References to generic type HashMap<K,V> should be
parameterized XMLWriter.java JAXB
2.x/runtime/src/com/sun/xml/bind/marshaller line 376 January 31,
2006 10:28:26 PM 2160
Warning Type safety: The expression of type Constructor needs
unchecked conversion to conform to Constructor<T> ClassFactory.java
   JAXB 2.x/runtime/src/com/sun/xml/bind/v2 line 53 January 31,
2006 10:28:26 PM 2155
Warning Type safety: The expression of type new
PrivilegedAction(){} needs unchecked conversion to conform to
PrivilegedAction<T> ClassFactory.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2 line 132 January 31, 2006
10:28:26 PM 2157
Warning Type safety: Unchecked invocation
doPrivileged(PrivilegedAction) of the generic method
doPrivileged(PrivilegedAction<T>) of type AccessController
ClassFactory.java JAXB 2.x/runtime/src/com/sun/xml/bind/v2 line
132 January 31, 2006 10:28:26 PM 2156
Warning Type safety: The expression of type Class needs unchecked
conversion to conform to Class<? extends T> ClassFactory.java
JAXB 2.x/runtime/src/com/sun/xml/bind/v2 line 186 January 31,
2006 10:28:26 PM 2158
Warning Type safety: The cast from Quick to A is actually checking
against the erased type Annotation LocatableAnnotation.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/annotation line 32
January 31, 2006 10:28:26 PM 2149
Warning Type safety: The cast from Object to A is actually checking
against the erased type Annotation LocatableAnnotation.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/annotation line 37
January 31, 2006 10:28:26 PM 2150
Warning Type safety: The cast from Annotation to A is actually
checking against the erased type Annotation
RuntimeInlineAnnotationReader.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/annotation line 56
January 31, 2006 10:28:26 PM 2147
Warning Type safety: The cast from Annotation to A is actually
checking against the erased type Annotation
RuntimeInlineAnnotationReader.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/annotation line 83
January 31, 2006 10:28:26 PM 2148
Warning The type parameter T is hiding the type T
ClassInfoImpl.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 332 January
31, 2006 10:28:25 PM 2126
Warning The serializable class PropertySorter does not declare a
static final serialVersionUID field of type long ClassInfoImpl.java
   JAXB 2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 369
January 31, 2006 10:28:25 PM 2127
Warning The serializable class ConflictException does not declare a
static final serialVersionUID field of type long ClassInfoImpl.java
   JAXB 2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 463
January 31, 2006 10:28:25 PM 2128
Warning The serializable class DupliateException does not declare a
static final serialVersionUID field of type long ClassInfoImpl.java
   JAXB 2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 471
January 31, 2006 10:28:25 PM 2129
Warning Type safety: The return type NonElement for getTarget()
from the type ElementInfoImpl<TypeT,ClassDeclT,FieldT,MethodT>.PropertyImpl
needs unchecked conversion to conform to NonElement<T,C> from the type
NonElementRef<T,C> ElementInfoImpl.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 101 January
31, 2006 10:28:25 PM 2122
Warning Type safety: The return type ElementInfoImpl for parent()
from the type ElementInfoImpl<TypeT,ClassDeclT,FieldT,MethodT>.PropertyImpl
needs unchecked conversion to conform to TypeInfo<T,C> from the type
PropertyInfo<T,C> ElementInfoImpl.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 136 January
31, 2006 10:28:25 PM 2123
Warning Type safety: The constructor TypeInfoSetImpl(Navigator,
AnnotationReader, Map) belongs to the raw type TypeInfoSetImpl.
References to generic type
TypeInfoSetImpl<TypeT,ClassDeclT,FieldT,MethodT> should be
parameterized ModelBuilder.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 101 January
31, 2006 10:28:25 PM 2113
Warning Type safety: The expression of type TypeInfoSetImpl needs
unchecked conversion to conform to TypeInfoSetImpl<T,C,F,M>
ModelBuilder.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 101 January
31, 2006 10:28:25 PM 2112
Warning The local variable t is never read ModelBuilder.java
JAXB 2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 139
January 31, 2006 10:28:25 PM 2114
Warning Type safety: The expression of type RegistryInfoImpl needs
unchecked conversion to conform to RegistryInfo<T,C>
ModelBuilder.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 245 January
31, 2006 10:28:25 PM 2115
Warning Type safety: The cast from List<capture-of ? extends
NonElement<Type,Class>> to List<? extends RuntimeNonElement> is
actually checking against the erased type List
RuntimeAttributePropertyInfoImpl.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 30 January
31, 2006 10:28:25 PM 2109
Warning Type safety: The return type Transducer for getTransducer()
from the type RuntimeBuiltinLeafInfoImpl<T> needs unchecked conversion
to conform to Transducer<V> from the type RuntimeLeafInfo
RuntimeBuiltinLeafInfoImpl.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 87 January
31, 2006 10:28:24 PM 2073
Warning Type safety: The return type Transducer for getTransducer()
from the type RuntimeBuiltinLeafInfoImpl<T> needs unchecked conversion
to conform to Transducer<V> from the type RuntimeLeafInfo
RuntimeBuiltinLeafInfoImpl.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 105 January
31, 2006 10:28:24 PM 2074
Warning Type safety: The return type Transducer for getTransducer()
from the type RuntimeBuiltinLeafInfoImpl<T> needs unchecked conversion
to conform to Transducer<V> from the type RuntimeLeafInfo
RuntimeBuiltinLeafInfoImpl.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 124 January
31, 2006 10:28:24 PM 2075
Warning Type safety: The return type Transducer for getTransducer()
from the type RuntimeBuiltinLeafInfoImpl<String> needs unchecked
conversion to conform to Transducer<V> from the type RuntimeLeafInfo
 RuntimeBuiltinLeafInfoImpl.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 146 January
31, 2006 10:28:24 PM 2076
Warning Type safety: The return type Transducer for getTransducer()
from the type RuntimeBuiltinLeafInfoImpl<Character> needs unchecked
conversion to conform to Transducer<V> from the type RuntimeLeafInfo
 RuntimeBuiltinLeafInfoImpl.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 200 January
31, 2006 10:28:24 PM 2077
Warning Type safety: The return type Transducer for getTransducer()
from the type RuntimeBuiltinLeafInfoImpl<Calendar> needs unchecked
conversion to conform to Transducer<V> from the type RuntimeLeafInfo
 RuntimeBuiltinLeafInfoImpl.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 209 January
31, 2006 10:28:24 PM 2078
Warning Type safety: The return type Transducer for getTransducer()
from the type RuntimeBuiltinLeafInfoImpl<GregorianCalendar> needs
unchecked conversion to conform to Transducer<V> from the type
RuntimeLeafInfo RuntimeBuiltinLeafInfoImpl.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 217 January
31, 2006 10:28:24 PM 2079
Warning Type safety: The return type Transducer for getTransducer()
from the type RuntimeBuiltinLeafInfoImpl<Date> needs unchecked
conversion to conform to Transducer<V> from the type RuntimeLeafInfo
 RuntimeBuiltinLeafInfoImpl.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 225 January
31, 2006 10:28:24 PM 2080
Warning Type safety: The return type Transducer for getTransducer()
from the type RuntimeBuiltinLeafInfoImpl<File> needs unchecked
conversion to conform to Transducer<V> from the type RuntimeLeafInfo
 RuntimeBuiltinLeafInfoImpl.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 235 January
31, 2006 10:28:24 PM 2081
Warning Type safety: The return type Transducer for getTransducer()
from the type RuntimeBuiltinLeafInfoImpl<URL> needs unchecked
conversion to conform to Transducer<V> from the type RuntimeLeafInfo
 RuntimeBuiltinLeafInfoImpl.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 243 January
31, 2006 10:28:24 PM 2082
Warning Type safety: The return type Transducer for getTransducer()
from the type RuntimeBuiltinLeafInfoImpl<Class> needs unchecked
conversion to conform to Transducer<V> from the type RuntimeLeafInfo
 RuntimeBuiltinLeafInfoImpl.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 257 January
31, 2006 10:28:24 PM 2083
Warning Type safety: The return type Transducer for getTransducer()
from the type RuntimeBuiltinLeafInfoImpl<Image> needs unchecked
conversion to conform to Transducer<V> from the type RuntimeLeafInfo
 RuntimeBuiltinLeafInfoImpl.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 281 January
31, 2006 10:28:24 PM 2084
Warning Type safety: The return type Transducer for getTransducer()
from the type RuntimeBuiltinLeafInfoImpl<DataHandler> needs unchecked
conversion to conform to Transducer<V> from the type RuntimeLeafInfo
 RuntimeBuiltinLeafInfoImpl.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 363 January
31, 2006 10:28:24 PM 2085
Warning Type safety: The return type Transducer for getTransducer()
from the type RuntimeBuiltinLeafInfoImpl<Source> needs unchecked
conversion to conform to Transducer<V> from the type RuntimeLeafInfo
 RuntimeBuiltinLeafInfoImpl.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 378 January
31, 2006 10:28:24 PM 2086
Warning Type safety: The return type Transducer for getTransducer()
from the type RuntimeBuiltinLeafInfoImpl<Boolean> needs unchecked
conversion to conform to Transducer<V> from the type RuntimeLeafInfo
 RuntimeBuiltinLeafInfoImpl.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 452 January
31, 2006 10:28:24 PM 2087
Warning Type safety: The return type Transducer for getTransducer()
from the type RuntimeBuiltinLeafInfoImpl<byte[]> needs unchecked
conversion to conform to Transducer<V> from the type RuntimeLeafInfo
 RuntimeBuiltinLeafInfoImpl.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 463 January
31, 2006 10:28:24 PM 2088
Warning Type safety: The return type Transducer for getTransducer()
from the type RuntimeBuiltinLeafInfoImpl<Byte> needs unchecked
conversion to conform to Transducer<V> from the type RuntimeLeafInfo
 RuntimeBuiltinLeafInfoImpl.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 479 January
31, 2006 10:28:24 PM 2089
Warning Type safety: The return type Transducer for getTransducer()
from the type RuntimeBuiltinLeafInfoImpl<Short> needs unchecked
conversion to conform to Transducer<V> from the type RuntimeLeafInfo
 RuntimeBuiltinLeafInfoImpl.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 491 January
31, 2006 10:28:24 PM 2090
Warning Type safety: The return type Transducer for getTransducer()
from the type RuntimeBuiltinLeafInfoImpl<Integer> needs unchecked
conversion to conform to Transducer<V> from the type RuntimeLeafInfo
 RuntimeBuiltinLeafInfoImpl.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 503 January
31, 2006 10:28:24 PM 2091
Warning Type safety: The return type Transducer for getTransducer()
from the type RuntimeBuiltinLeafInfoImpl<Long> needs unchecked
conversion to conform to Transducer<V> from the type RuntimeLeafInfo
 RuntimeBuiltinLeafInfoImpl.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 515 January
31, 2006 10:28:24 PM 2092
Warning Type safety: The return type Transducer for getTransducer()
from the type RuntimeBuiltinLeafInfoImpl<Float> needs unchecked
conversion to conform to Transducer<V> from the type RuntimeLeafInfo
 RuntimeBuiltinLeafInfoImpl.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 527 January
31, 2006 10:28:24 PM 2093
Warning Type safety: The return type Transducer for getTransducer()
from the type RuntimeBuiltinLeafInfoImpl<Double> needs unchecked
conversion to conform to Transducer<V> from the type RuntimeLeafInfo
 RuntimeBuiltinLeafInfoImpl.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 538 January
31, 2006 10:28:24 PM 2094
Warning Type safety: The return type Transducer for getTransducer()
from the type RuntimeBuiltinLeafInfoImpl<BigInteger> needs unchecked
conversion to conform to Transducer<V> from the type RuntimeLeafInfo
 RuntimeBuiltinLeafInfoImpl.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 549 January
31, 2006 10:28:24 PM 2095
Warning Type safety: The return type Transducer for getTransducer()
from the type RuntimeBuiltinLeafInfoImpl<BigDecimal> needs unchecked
conversion to conform to Transducer<V> from the type RuntimeLeafInfo
 RuntimeBuiltinLeafInfoImpl.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 565 January
31, 2006 10:28:24 PM 2096
Warning Type safety: The return type Transducer for getTransducer()
from the type RuntimeBuiltinLeafInfoImpl<QName> needs unchecked
conversion to conform to Transducer<V> from the type RuntimeLeafInfo
 RuntimeBuiltinLeafInfoImpl.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 576 January
31, 2006 10:28:24 PM 2097
Warning Type safety: The return type Transducer for getTransducer()
from the type RuntimeBuiltinLeafInfoImpl<URI> needs unchecked
conversion to conform to Transducer<V> from the type RuntimeLeafInfo
 RuntimeBuiltinLeafInfoImpl.java JAXB
2.x/runtime/src/com/sun/xml/bind/v2/model/impl line 600 January
31, 2006 10:28:24 PM 2098




On 1/29/06, Kohsuke Kawaguchi <kohsuke.kawaguchi_at_sun.com> wrote:
> Hanson Char wrote:
> > One interesting thing I've observed from building jaxb 2.0 is that if I set
> > up a project in Netbeans (4.1.x) or IntelliJ (5.0.x) or just build it
> > directly via Ant, the source code compiles just fine. But if I set up a
> > project in Eclipse (3.1.2), a lot of source codes with Java5 generics
> > constructs are marked as errors by the IDE! (Example:
> > ElementInfoImpl.javaunder package
> > com.sun.xml.bind.v2.model.impl)
> >
> > This seems to indicate that as jar as Java generics goes Eclipse is not
> > quite up to the task yet :(
>
> That's my observation, too.
>
>
> > One annoyance I've found regardless of whether I am using Ant (1.6.5)
> > directly from the command line, or Netbeans, IntelliJ or Eclipse, "ant dist"
> > always failed unless I comment out the "javadoc" target in
> > runtime/build.xml. Otherwise, it always failed with something like:
> >
> > C:\Playground\workspace\3.1.1\jaxb2-sources\jaxb-ri\runtime\build.xml:207:
> > Javadoc failed: java.io.IOException: CreateProcess:
> > C:\Software\jdk\1.5.0\06\bin\javadoc.exe -quiet -d
> > C:\Playground\workspace\3.1.1\jaxb2-sources\jaxb-ri\runtime\build\api -use
> > -windowtitle "JAXB RI runtime" -package -classpath
> > C:\Playground\workspace\3.1.1\jaxb2-sources\jaxb-ri\runtime-api\build\classes;C:\Playground\workspace\3.1.1\jaxb2-sources\jaxb-ri\tools\lib\redist\activation.jar;C:\Playground\workspace\3.1.1\jaxb2-sources\jaxb-ri\tools\lib\redist\jaxb-
> > api.jar
> > ;C:\Playground\workspace\3.1.1\jaxb2-sources\jaxb-ri\tools\lib\redist\jsr173_1.0_api.jar;C:\Playground\workspace\3.1.1\jaxb2-sources\jaxb-ri\tools\lib\rebundle\compiler\dtd-
> > parser-1.0.jar
> > ;C:\Playground\workspace\3.1.1\jaxb2-sources\jaxb-ri\tools\lib\rebundle\compiler\relaxngDatatype.jar;C:\Playground\workspace\3.1.1\jaxb2-sources\jaxb-ri\tools\lib\rebundle\compiler\resolver.jar;C:\Playground\workspace\3.1.1\jaxb2-sources\jaxb-ri\tools\lib\rebundle\compiler\rngom.jar;C:\Playground\workspace\3.1.1\jaxb2-sources\jaxb-ri\tools\lib\rebundle\compiler\xsom.jar;C:\Playground\workspace\3.1.1"
>
> Can you run "ant -debug" to get more detailed info?
>
> On surface, it's an error in CreateProcess, indicating that there's
> something wrong with the environment --- such as not being able to find
> javadoc.exe, or some such.
>
> Hopefully "ant -debug" will help us there.
>
> --
> Kohsuke Kawaguchi
> Sun Microsystems kohsuke.kawaguchi_at_sun.com
>
>
>