8381475: Test tools/sincechecker/modules/jdk.compiler/JdkCompilerCheckSince.java fails for DocSourcePositions.java

Reviewed-by: mikael
This commit is contained in:
Vicente Romero 2026-04-02 22:57:35 +00:00
parent 5e89669d18
commit e05eb1418e
3 changed files with 5 additions and 1 deletions

View File

@ -83,6 +83,7 @@ public interface DocSourcePositions extends SourcePositions {
* @param comment the comment tree that encloses the tree for which the
* position is being sought
* @param tree tree for which a position is sought
* @since 27
*/
long getStartPosition(DocCommentTree comment, DocTree tree);
@ -146,6 +147,7 @@ public interface DocSourcePositions extends SourcePositions {
* @param comment the comment tree that encloses the tree for which the
* position is being sought
* @param tree tree for which a position is sought
* @since 27
*/
long getEndPosition(DocCommentTree comment, DocTree tree);

View File

@ -74,6 +74,7 @@ public interface SourcePositions {
* </p>
*
* @param tree tree for which a position is sought
* @since 27
*/
long getStartPosition(Tree tree);
@ -130,6 +131,7 @@ public interface SourcePositions {
* </p>
*
* @param tree tree for which a position is sought
* @since 27
*/
long getEndPosition(Tree tree);
}

View File

@ -23,7 +23,7 @@
/*
* @test
* @bug 8341399
* @bug 8341399 8381475
* @summary Test for `@since` in jdk.compiler module
* @library /test/lib /test/jdk/tools/sincechecker
* @run main SinceChecker jdk.compiler