Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Another intertype declaration question

Does this work?
int (Cla || Cla2).print(){
	throw new RuntimeException();
}
I have two dummy classes, Cla and Cla2. Compiler says
/home/czhang/eclipse/workspace/Test/Test.java:16 Syntax error on token
"(", "around", "aspect", "privileged", "pointcut", "before", "after",
"declare", "Identifier" expected
int (Cla || Cla2).print()
    ^

Charles


Back to the top