Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » Eclipse doesn't recognize introduced method
Eclipse doesn't recognize introduced method [message #591090] Sun, 11 December 2005 16: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
Previous Topic:Eclipse doesn't recognize introduced method
Next Topic:Error: The attribute argNames is undefined
Goto Forum:
  


Current Time: Fri Jul 25 21:14:18 EDT 2014

Powered by FUDForum. Page generated in 0.04755 seconds