aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoraclement <aclement>2004-07-27 10:34:41 +0000
committeraclement <aclement>2004-07-27 10:34:41 +0000
commit936459c28229321deb0b09d076193be32cd9754e (patch)
treec5556e2d29d7182fa6a69312022789336b5a96ec /tests
parent9867cbbcc40e471fb07ea7726fa02664f36ac8e8 (diff)
downloadaspectj-936459c28229321deb0b09d076193be32cd9754e.tar.gz
aspectj-936459c28229321deb0b09d076193be32cd9754e.zip
Fix for 53999
"can't bind type" message has $ for . in type name for declare soft
Diffstat (limited to 'tests')
-rw-r--r--tests/ajcTests.xml6
-rw-r--r--tests/bugs/Cosmetic.java11
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/ajcTests.xml b/tests/ajcTests.xml
index 08d856f20..a74b3d915 100644
--- a/tests/ajcTests.xml
+++ b/tests/ajcTests.xml
@@ -7770,4 +7770,10 @@
</compile>
</ajc-test>
+ <ajc-test dir="bugs"
+ pr="53999" title="'can't bind type' message has $ for . in type name for declare soft">
+ <compile files="Cosmetic.java">
+ <message kind="error" line="9" text="can't bind type name 'unknown.Error'"/>
+ </compile>
+ </ajc-test>
</suite>
diff --git a/tests/bugs/Cosmetic.java b/tests/bugs/Cosmetic.java
new file mode 100644
index 000000000..bc874305b
--- /dev/null
+++ b/tests/bugs/Cosmetic.java
@@ -0,0 +1,11 @@
+ class Test {
+ public static void main(String[] args) {
+ test();
+ }
+ static void test() {
+ throw new Error("hello");
+ }
+ static aspect A {
+ declare soft : unknown.Error : call(void test()); // CE should be a message saying cant bind type 'unknown.Error' and not 'unknown$Error'
+ }
+} \ No newline at end of file