aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new/EachObjectInDeepPackage.java
blob: 2269af4ad11af785f8f552c218400c76eabef080 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * Modified this test case to reflect the fact that types in the default package
 * can only be used in named packages if they are imported.
 * 
 * I believe that according to the 1.1 interpretation of the JLS that this import
 * is also disallowed and there is no way to refer to types in the default package
 * from a named package.
 */

package the.deep.pkg;

import org.aspectj.testing.Tester;
import EachObjectTarget;

aspect Aspect pertarget(target(EachObjectTarget)) {
  before(): call(void foo(..)) {
  	EachObjectTarget t = null;
	Tester.check(true, "Dummy test");
  }
}