Skip to content

Commit

Permalink
2023-06->2023-09 Seems to have broke dependency graph management in o…
Browse files Browse the repository at this point in the history
…ur project (eclipse-jdt#2059)

Testcase to witness that eclipse-jdt#1654 has been resolved (via PR 1447)
  • Loading branch information
stephan-herrmann authored Mar 14, 2024
1 parent 75b9df3 commit 7061736
Showing 1 changed file with 44 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2018 IBM Corporation and others.
* Copyright (c) 2000, 2024 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
Expand All @@ -15,6 +15,9 @@
import junit.framework.Test;

public class AnnotationTest_9 extends AbstractComparableTest {
static {
// TESTS_NAMES = new String[] { "testGH1654" };
}

public AnnotationTest_9(String name) {
super(name);
Expand Down Expand Up @@ -103,4 +106,44 @@ public void testBug521054c() throws Exception {
"----------\n",
null, true);
}
public void testGH1654() {
runConformTest(
new String[] {
"p1/Anno.java",
"""
package p1;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface Anno {
String value();
}
""",
"p1/Cls.java",
"""
package p1;
import p2.Inf;
@Anno(Cls.CON)
public class Cls implements Inf {
}
""",
"p2/Inf.java",
"""
package p2;
public interface Inf {
String CON = "Con";
}
"""
}
);
}
}

0 comments on commit 7061736

Please sign in to comment.