Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » Changing the class hierarchy
Changing the class hierarchy [message #590343] Thu, 06 October 2005 13:21
Alessandro Di Bella is currently offline Alessandro Di BellaFriend
Messages: 2
Registered: July 2009
Junior Member
I'm new to ajdt/aspectj and I am trying to use an aspect to change hierarchy of a class.
My aspect look like:

public aspect JenaAdaptersHierarchyAspect {
 declare parents : com.hp.hpl.jena.ontology.impl.OntClassImpl extends JenaClassAdapter;
and the pointcut is declared on a binary aspect.
The jena jar is in the infpath end the classes involved are:
public class JenaClassAdapter extends OntResourceImpl implements Resource {
 public JenaClassAdapter( Node n, EnhGraph g ) {
  super(n, g);

public interface Resource {
 public String getURI();

and hpl/jena/ontology/impl/

My problem is that when I try to instantiate the class (new OntClassImpl(null,null)) i get:
java.lang.VerifyError: (class: com/hp/hpl/jena/ontology/impl/OntClassImpl, method: <init> signature: (Lcom/hp/hpl/jena/graph/Node;Lcom/hp/hpl/jena/enhanced/EnhGr aph;)V) Call to wrong initialization method

I tried recompiling the Jena jar using the same compiler of the weaver but no luck.

I'm using ajdt downloaded from

Any help would be greatly appreciated.

Thanks in advance

Previous Topic:Changing the class hierarchy
Next Topic:strange bug with .aj files in jar-packager
Goto Forum:

Current Time: Tue Oct 06 08:11:44 GMT 2015

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

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