-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
Showing
32 changed files
with
87 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
public class Construction { | ||
public static void main(String []argv) { | ||
new _(); | ||
new __(); | ||
System.out.println("done"); | ||
} | ||
} | ||
|
||
aspect XX { | ||
public static class Construction._ { | ||
public static class Construction.__ { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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]); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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]); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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]); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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]); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
package a.b.c; | ||
|
||
aspect Vote_Amender { | ||
static class Vote._ { | ||
static class Vote.__ { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
public class Basic { | ||
public static void main(String []argv) { | ||
new _(); | ||
new __(); | ||
System.out.println("done"); | ||
} | ||
} | ||
|
||
aspect XX { | ||
public static class Basic._ { | ||
public static class Basic.__ { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
public class Basic2 { | ||
public static void main(String []argv) { | ||
new Basic._(); | ||
new Basic.__(); | ||
System.out.println("done"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
public class Basic { | ||
public static void main(String []argv) { | ||
// new _(); | ||
// new __(); | ||
System.out.println("done"); | ||
} | ||
} | ||
|
||
aspect XX { | ||
public static class Basic._ { | ||
public static class Basic.__ { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
public class Basic2 { | ||
public static void main(String []argv) { | ||
new Basic._(); | ||
new Basic.__(); | ||
System.out.println("done"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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]); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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]); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
aspect Aspect2 { | ||
public Construction._ Construction._() { return new _("abc"); } | ||
public Construction.__ Construction.__() { return new __("abc"); } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
public class Construction { | ||
public static void main(String []argv) { | ||
new _(); | ||
System.out.println(new _("abcde")); | ||
new __(); | ||
System.out.println(new __("abcde")); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
package a.b.c; | ||
|
||
@RelatedType(value=Vote._.class) | ||
@RelatedType(value=Vote.__.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]); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
package a.b.c; | ||
|
||
public aspect Vote_Amender { | ||
public static class Vote._ { | ||
public static class Vote.__ { | ||
private String string; | ||
private String choice = "abc"; | ||
public _(String string) { this.string = string; } | ||
public __(String string) { this.string = string; } | ||
public String getString() { return this.string; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
package a.b.c; | ||
|
||
public aspect Vote_Amender { | ||
public static class Vote._ { | ||
public static class Vote.__ { | ||
private String string; | ||
public _(String string) { this.string = string; } | ||
public __(String string) { this.string = string; } | ||
public String getString() { return this.string; } | ||
} | ||
} |
Oops, something went wrong.