Hi,

I found, that the renaming of that specific interface (AccessType -> 
XmlAccessType) was made between 2.0 early access (EA) 3 and 2.0 final. I 
used 2.0EA3 for generating the classes, and in Java 6 the final api is 
included. That's the cause of the compile time failure.

However, this interface is only referenced in annotations, which we 
don't use, so I'll remove them, and this way even get rid of a 
dependency. Other solution would be to switch to at least JAXB 2.0 
final, and rewrite AccessType to XmlAccessType, so that it will be 
compatible with JDK 1.6.0.

Best,
Peter

Jody Garnett wrote:
> Here is the information I found:
> - 
> https://jaxb.dev.java.net/guide/Which_JAXB_RI_is_included_in_which_JDK_.html 
> 
> - 
> https://jaxb.dev.java.net/guide/Migrating_JAXB_2_0_applications_to_JavaSE_6.html
>  
> 
> 
> Cheers,
> Jody
> 
> Bolla Péter wrote:
>> Hi Jody,
>>
>> This sounds strange to me, I've never seen a copilation error like 
>> this before... (the class is required by what?)
>>
>>>> C:\java\geotools\trunk\modules\unsupported\xml-gpx\src\main\java\org\geotools\gpx\bean\CopyrightType.java:[44,27]
>>>>  
>>>> incomp
>>>> atible types
>>>> found   : javax.xml.bind.annotation.AccessType
>>>> required: javax.xml.bind.annotation.XmlAccessType
>>
>> If I change the import to XmlAccessType, eclipse says that there is no 
>> class XmlAccessType.
>>
>> -snip-
>>
>> The cause is that you are trying to compile with JDK 1.6.0. It 
>> compiles well with 1.5.0. Should it compile with 1.6.0 as well?
>>
>> Peter
>>
> 
> 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to