Thanks Jesse for the explanation. So, it looks like the intention is to use 
the override as is intended in java 6 (to implement interface signatures). 
Thus the project net.refractions.udig.catalog should be setted with compliance 
1.6. ? 

On Friday, September 02, 2011 08:11:16 AM Jesse Eichar wrote:
> The @Override is a Java 5 vs Java 6 issue.  In Java 5 you can only have
> that annotation on methods that override (not implement) a method.  So in
> order to build the project correctly we have to update all of the
> manifests so that they all list java 6 as the minimum environment.  Also
> in eclipse you have to ensure that you are compiling with Java 5.  There
> are per project settings (which typically just delegate to the global
> settings).  So on projects that are not compiling correctly I would advise
> looking at your globel *Compiler* settings and also the project specific
> settings.
> 
> But for the exported project to work correctly you have to set the project
> manifests to have Java 6 as minimum instead of Java 5.  Should be a pretty
> simple find and replace job.
> 
> Just so you know when you export you will not get an error.  Instead it
> will export fine but at runtime when it tries to load the class (or maybe
> even just the method) with that annotation a runtime exception will be
> thrown because OSGI detects the @Override as not Java 5 compliant.
> 
> Jesse
> 
> On Fri, Sep 2, 2011 at 5:09 AM, Jody Garnett <[email protected]> wrote:
> > I have a small question - Jesse mentioned this problem with @Override as
> > well; but I do not seem to be able to reproduce?
> > 
> > In anycase I will try and join you on IRC to help with the issues you
> > list below; but I do wonder if I am taking the same steps as Jesse and
> > yourself? Where do you see the @Override error ...
> > 
> > Jody
> > 
> > On Friday, September 2, 2011, Mauricio Pazos wrote:
> >> Building udig product I found the following issues:
> >> 
> >> 1- net.refractions.udig.catalog.memory.MemoryCatalog
> >> It looks like  some method are not in the superclass then the @Override
> >> produce error. Should we remove the override or I have an old superclass
> >> in my
> >> local branch.
> >> 
> >> 2-net.refractions.udig.mapgraphic contains a test folder, thus it force
> >> us to
> >> include junit in the final prduct. I have created (not push) in my
> >> localbranch
> >> a  net.refractions.udig.mapgraphic.test and have moved the unit test.
> >> 
> >> 3 - right now I have created an udig product but when I have executed
> >> the
> >> 
> >> update site the install dialog presents the following error:
> >>  net.refractions.udig_base-feature (1.2.0.201109011726) requires plug-in
> >> 
> >> "org.apache.xerces".
> >> 
> >> More dependency problems. I will follow tomorrow
> >> 
> >> cheers
> >> 
> >> --
> >> Mauricio Pazos
> > 
> > _______________________________________________
> > User-friendly Desktop Internet GIS (uDig)
> > http://udig.refractions.net
> > http://lists.refractions.net/mailman/listinfo/udig-devel

-- 
Mauricio Pazos


_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to