Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » Eclipse doesn't recognize introduced method
Eclipse doesn't recognize introduced method [message #591090] Sun, 11 December 2005 21:48
Eclipse UserFriend
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: Tue Apr 16 20:33:47 GMT 2024

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

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

Back to the top