aboutsummaryrefslogtreecommitdiffstats
path: root/tests/features169/itdInnerTypes/four
diff options
context:
space:
mode:
authorAlexander Kriegisch <Alexander@Kriegisch.name>2024-02-12 15:19:33 +0700
committerAlexander Kriegisch <Alexander@Kriegisch.name>2024-02-13 10:31:17 +0700
commit8478d33a68781b3dd950224eb3ebbec6727bfc8e (patch)
treee92a173345b9e6b8002ba37c95ca7a7b82673904 /tests/features169/itdInnerTypes/four
parentfcf0c35b5d43a5abf7c50970b97da1f3d0a30de8 (diff)
downloadaspectj-8478d33a68781b3dd950224eb3ebbec6727bfc8e.tar.gz
aspectj-8478d33a68781b3dd950224eb3ebbec6727bfc8e.zip
ITD inner type tests: replace '_' by '__'
Classes and methods named '_' are no longer allowed in ECJ, obviously also not for old target versions like 1.5. This probably is due to the added support for unnamed patterns and classes in the latest upstream JDT Core merge. Therefore, we simply rename '_' to '__'. Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'tests/features169/itdInnerTypes/four')
-rw-r--r--tests/features169/itdInnerTypes/four/Runner.java5
-rw-r--r--tests/features169/itdInnerTypes/four/Vote_Amender.aj4
2 files changed, 4 insertions, 5 deletions
diff --git a/tests/features169/itdInnerTypes/four/Runner.java b/tests/features169/itdInnerTypes/four/Runner.java
index f9bd75421..14dcfcae7 100644
--- a/tests/features169/itdInnerTypes/four/Runner.java
+++ b/tests/features169/itdInnerTypes/four/Runner.java
@@ -1,11 +1,10 @@
package a.b.c;
-@RelatedType(value=Vote._.choice.class)
+@RelatedType(value=Vote.__.choice.class)
public class Runner {
public static void main(String[]argv) {
- Vote._ v = new Vote._("wibble");
+ Vote.__ v = new Vote.__("wibble");
System.out.println(v.getString());
System.out.println(Runner.class.getDeclaredAnnotations()[0]);
}
}
-
diff --git a/tests/features169/itdInnerTypes/four/Vote_Amender.aj b/tests/features169/itdInnerTypes/four/Vote_Amender.aj
index 44a4ff750..3b8220e96 100644
--- a/tests/features169/itdInnerTypes/four/Vote_Amender.aj
+++ b/tests/features169/itdInnerTypes/four/Vote_Amender.aj
@@ -1,10 +1,10 @@
package a.b.c;
public aspect Vote_Amender {
- public static class Vote._ {
+ public static class Vote.__ {
private String string;
public static class choice {}
- public _(String string) { this.string = string; }
+ public __(String string) { this.string = string; }
public String getString() { return this.string; }
}
}