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 #58984] 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:hierarchy tree of aspectj projects
Next Topic:Eclipse doesn't recognize introduced method
Goto Forum:
  


Current Time: Sat Nov 29 02:46:07 GMT 2014

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

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