Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [ajdt-dev] type name patterns in AspectJ 1.1rc2

Jesús,

Have a look at the following link; it offers both the answer to your
question and a solution.

http://dev.eclipse.org/viewcvs/indextech.cgi/~checkout~/aspectj-home/REA
DME-11.html#SINGLE_INTERCLASS_TARGET


Kevin Viggers
viggers@xxxxxxxxxxxxxxxx


-----Original Message-----
From: ajdt-dev-admin@xxxxxxxxxxxxxxx
[mailto:ajdt-dev-admin@xxxxxxxxxxxxxxx] On Behalf Of Jesús Bisbal
Sent: May 31, 2003 2:17 PM
To: ajdt-dev@xxxxxxxxxxxxxxx
Subject: [ajdt-dev] type name patterns in AspectJ 1.1rc2

Hello,
   I hope this is a the right mailing list to submit this question.
   I am trying to compile the following code, which is part of an aspect
definition in AspectJ:

private String edu..*coder.currAction = null;
private String edu..Conf*er.currAction = null;
private boolean edu..Conf*er.reset = false;

  The compiler returns the following error at the first line (and any
one of the other lines):
Syntax error on token ".", "around", "aspect", "privileged", "pointcut",
"before", "after", "declare", "Identifier" expected 

  I've tried to compile this code from both Eclipse as well as the
command line.
  The problem is that type name patterns don't seem to be allowed
anymore. With AspectJ 1.0 this same code compiles without any kind of
problems. Will type patterns in Introductions no longer be allowed in
this (AspectJ 1.1rc2) and following versions of AspectJ?. I find it a
bit difficult to believe.
  
   In order to get around this problem, I've tried to use Eclipse
changing the aspectjrt.jar library in my projects properties, so that it
compiles with version 1.0 of AspectJ. But then I get the error:
"AspectJ Runtime error: bad version number found in
c:\aspectj1.0\lib\aspectjrt.jar expected 1.1rc2 found null please place
a valid aspectjrt.jar on the classpath"

   So it seems that the current version of AJDT will work only with
version 1.1rc2 of AspectJ. 
   Therefore, I find myself having to develop using the command line.
   Is there currently any way around this problem.
   Thank you very much in advance for your help.
   Best regards,

Jesus Bisbal

   

________________________________________________________________________
__
Jesús Bisbal                               
http://www.cse.msu.edu/~bisbal
Software Engineering and Networks Laboratory      
Department of Computer Science and Engineering   http://www.cse.msu.edu
Michigan State University                      Work Ph: +1-517-353-9203
3115 Engineering Building                      Fax:     +1-517-432-1061
East Lansing, MI 48824-1226, USA                                




Back to the top