Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » (again) Eclipse doesn't recognize introduced method
(again) Eclipse doesn't recognize introduced method [message #591244] Wed, 14 December 2005 20:56
Eclipse User
Originally posted by: ad-rocha.uol.com.br

Hi,

I'm posting this message again, because there was no replies...

I'm using intertype declarations in order to make my classes implement a
interface:

package br.com.example.aspectos;
public aspect Persistencia {
declare parents: br.com.example.model.* implements Persistente;
private int Persistente.chave = 0;
public int Persistente.getChave() {
return chave;
}
public void Persistente.setChave(int chave) {
this.chave = chave;
}
}

package br.com.example.aspectos;
public interface Persistente {
public int getChave();
public void setChave(int chave);
}


The compilation works fine, and I can see the method getChave() if I
decompile the "br.com.example.model.Pessoa" class. But when I try to use
this method, eclipse bombs with message: "The method getChave() is undefined
for classe Pessoa".

My current configuration is:

Eclipse Java Development Tools SDK
Version: 3.1.0
Build id: I20050627-1435

Eclipse AspectJ Development Tools
Version: 1.3.0
Build id: 20051208103628
AspectJ version: 1.5.0.20051206103951


What am I doing wrong?

Thanks,

Andr
Previous Topic:Newbie has Eclipse 3.1.1 - which version of AJDT ??
Next Topic:AJDT 1.2.1RC1 and 1.3.0RC1 now available
Goto Forum:
  


Current Time: Tue Sep 23 12:36:30 GMT 2014

Powered by FUDForum. Page generated in 0.03446 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software