kopia lustrzana
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-26 05:57:44 +02:00
28 wiersze
817 B
Java
28 wiersze
817 B
Java
/*
|
|
* This test case reveals a limitation in the ajc unparser using fully qualified
|
|
* names for types. I don't believe that there is in fact a general solution to
|
|
* this problem, so for now we move this to opentests
|
|
*/
|
|
|
|
import org.aspectj.testing.*;
|
|
|
|
public class PackagesAndStaticClassesWithTheSameName {
|
|
public static void main(String[] args) {
|
|
String string = "string";
|
|
java.lang.Str str = new java.lang.Str(string);
|
|
Tester.checkEqual(string + ":" + string, str+"");
|
|
}
|
|
|
|
static class java {
|
|
static class lang {
|
|
static class Str {
|
|
private String str;
|
|
Str(String str) {
|
|
this.str = str;
|
|
}
|
|
public String toString() { return str + ":" + str; }
|
|
}
|
|
}
|
|
}
|
|
}
|