Eclipse doesn't recognize introduced method [message #58984] |
Sun, 11 December 2005 21:48 |
Eclipse User |
|
|
|
Originally posted by: ad-rocha.uol.com.br
Hi,
I'm using intertype declarations in order to make my classes implement a
interface:
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".
What am I doing wrong?
Thanks,
Andr
|
|
|
Powered by
FUDForum. Page generated in 0.02965 seconds