Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] errors compiling annotations

Ah, so you aren't using eclipse to build, you are using build.xml to
build?  In that case you need to tell the iajc task to build in 1.5
mode, it won't be aware of the source level you have set in the
compiler options, that is for the built in compiler.  I think it is
something like:

source="1.5"

in your iajc task in the build.xml

Andy.


On 18/04/06, mouna SAHIB <mouna.sahib@xxxxxxxxx> wrote:
> Yes, I still have the erros you're reminding below!
> I don't build in command line! In fact, I'm using a build.xml file in which
> I introduced the iajc task instead of javac and added the requiered jars.
> When I left the annotation and used methods' names in pointcuts, I don't
> have these errors any more! (but still have some errors in the project :) )
>
>
>
> 2006/4/18, Andy Clement <andrew.clement@xxxxxxxxx>:
> > So, are you still seeing in the problems view (from the bug report you
> > referred to):
> >
> > '[error] annotation type patterns are only supported at Java 5
> > compliance level or above'
> >
> > and
> >
> > '[error] Syntax error, annotations are only available if source level is
> 5.0'
> >
> > Can you build the code on the command line with 'ajc -1.5 SomeCode.java' ?
> >
> > Have you written any AJ specific code yet or is it still all pure Java
> > - if it pure java do the errors go away if you remove the AJ nature?
> >
> > Andy.
> >
> > On 18/04/06, mouna SAHIB <mouna.sahib@xxxxxxxxx> wrote:
> > > I alredy have selected the 5.0 version of the compiler as you described,
> but
> > > it doesn't work!!
> > >
> > >
> > > 2006/4/18, Andy Clement <andrew.clement@xxxxxxxxx >:
> > > > If you are inside eclipse you need to switch your project compiler
> > > > level to 5.0 in order to compile annotations.  I presume you are on
> > > > Eclipse 3.1, not 1.3 ?
> > > > Open the project properties for your project, select 'Java Compiler'
> > > > in the left window, then 'enable project specific settings' in the
> > > > right hand window and switch the 'compiler compliance level' to 5.0.
> > > > Or you can set it at the workbench level for all your projects.
> > > >
> > > > Andy.
> > > >
> > > > On 18/04/06, mouna SAHIB < mouna.sahib@xxxxxxxxx> wrote:
> > > > >
> > > > > I'm having the problems when compiling annotations. I'm using jdk
> 1.5
> > > and
> > > > > aspectj 5 with Eclipse 1.3? What 's the problem?
> > > > > I saw the describtion of the problem in the bugs list, but don't
> know
> > > how it
> > > > > has been resolved.
> > > > >
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=124077
> > > > > Thank yu for help.
> > > > >
> > > > > _______________________________________________
> > > > > aspectj-users mailing list
> > > > > aspectj-users@xxxxxxxxxxx
> > > > >
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
> > > > >
> > > > >
> > > > >
> > > > _______________________________________________
> > > > aspectj-users mailing list
> > > > aspectj-users@xxxxxxxxxxx
> > > >
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
> > > >
> > >
> > >
> > > _______________________________________________
> > > aspectj-users mailing list
> > > aspectj-users@xxxxxxxxxxx
> > > https://dev.eclipse.org/mailman/listinfo/aspectj-users
> > >
> > >
> > >
> > _______________________________________________
> > aspectj-users mailing list
> > aspectj-users@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/aspectj-users
> >
>
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
>


Back to the top