diff options
author | acolyer <acolyer> | 2004-08-11 07:30:19 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2004-08-11 07:30:19 +0000 |
commit | 9d36a87c1f64a2c214cab2be16b2eda8b79cdf87 (patch) | |
tree | f3c7a2cdc9fb64af91161a826751ee64c3f6bec3 /tests/bugs | |
parent | bf261abb3a295505a27f42a9d37d04c15a74ec6f (diff) | |
download | aspectj-9d36a87c1f64a2c214cab2be16b2eda8b79cdf87.tar.gz aspectj-9d36a87c1f64a2c214cab2be16b2eda8b79cdf87.zip |
tests for pr62475 (disabled at present)
Diffstat (limited to 'tests/bugs')
-rw-r--r-- | tests/bugs/oxford/PR62475.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/bugs/oxford/PR62475.java b/tests/bugs/oxford/PR62475.java new file mode 100644 index 000000000..3e29ffb0a --- /dev/null +++ b/tests/bugs/oxford/PR62475.java @@ -0,0 +1,28 @@ +/* +Intertype field initialisers should be resolved in the aspect +(lexical scope), for consistency with intertype method and +constructor bodies. + +The program below compiles without warning, however, binding z +to the z field of the target class. +*/ + + + +aspect Aspect { + + public int A.x = z; // CE L14 error: z not visible. + +} + +class A { + int z = 0; +} + +public class PR62475 { + + public static void main(String[] args) { +System.out.println(new A().x); + } + +}
\ No newline at end of file |