Community
Participate
Working Groups
The following program fails on recent dev builds and on 1.5.2. // top level package public interface Interface { pointcut foo() : execution(* foo()); } package user; public aspect Caller { before() : Interface.foo() {} } >ajc Interface.java user\Caller.java C:\devel\scratch\interfacePcd\user\Caller.java:4 [error] can't bind type name 'I nterface' before() : Interface.foo() {} ^^^^^^^^ 1 error
This is a Java problem. After JDK 1.3 you cannot access types in the default package from a type that isn't. The following example will only compile (even in a vanilla Java project) when using "Compiler compliance leve: 1.3" (but won't with javac unless you are actually using JDK 1.3 not "-src 1.3"): public interface Interface { } package user; import Interface; public class Caller implements Interface { }