Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » VerifyError in instantiation
VerifyError in instantiation [message #596519] Thu, 29 November 2007 01:01
Hugo Sobral is currently offline Hugo SobralFriend
Messages: 2
Registered: July 2009
Junior Member
I have a simple code:

public static void main(String[] args) {

Coor p = new Cart();
}
}

public class Cart extends Coor {

public Cart(double x, double y) {
a = x;
b = y;
}

public double getX() {
return a;
}

public void setX(double x) {
a = x;
}
}


public class Coor {

double a;
double b;

public Coor() {

}
}

and the aspect:



public aspect dynconst {

pointcut fieldSet() : set(* (Cart || Coor).*);

void around() : fieldSet() {
System.out.println("set");
proceed();
}
}


in runtime a get an exception:

Exception in thread "main" java.lang.VerifyError: (class: Cart, method:
a_aroundBody4 signature: (LCart;LCoor;D)V) Incompatible type for getting
or setting field
at Main.main(Main.java:3)

What is the problem?

thanks in advance
Previous Topic:VerifyError in instantiation
Next Topic:java.lang.NullPointerException --> org.eclipse.ajdt.ui
Goto Forum:
  


Current Time: Thu Apr 25 20:51:11 GMT 2024

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

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

Back to the top