Skip to content

Commit 2357f93

Browse files
Vicente RomeroRealCLanger
authored andcommitted
8381475: Test tools/sincechecker/modules/jdk.compiler/JdkCompilerCheckSince.java fails for DocSourcePositions.java
Reviewed-by: mikael
1 parent fa5ec62 commit 2357f93

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/jdk.compiler/share/classes/com/sun/source/util/DocSourcePositions.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ default long getStartPosition(CompilationUnitTree file, DocCommentTree comment,
8383
* @param comment the comment tree that encloses the tree for which the
8484
* position is being sought
8585
* @param tree tree for which a position is sought
86+
* @since 27
8687
*/
8788
long getStartPosition(DocCommentTree comment, DocTree tree);
8889

@@ -146,6 +147,7 @@ default long getEndPosition(CompilationUnitTree file, DocCommentTree comment, Do
146147
* @param comment the comment tree that encloses the tree for which the
147148
* position is being sought
148149
* @param tree tree for which a position is sought
150+
* @since 27
149151
*/
150152
long getEndPosition(DocCommentTree comment, DocTree tree);
151153

src/jdk.compiler/share/classes/com/sun/source/util/SourcePositions.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ default long getStartPosition(CompilationUnitTree file, Tree tree) {
7474
* </p>
7575
*
7676
* @param tree tree for which a position is sought
77+
* @since 27
7778
*/
7879
long getStartPosition(Tree tree);
7980

@@ -130,6 +131,7 @@ default long getEndPosition(CompilationUnitTree file, Tree tree) {
130131
* </p>
131132
*
132133
* @param tree tree for which a position is sought
134+
* @since 27
133135
*/
134136
long getEndPosition(Tree tree);
135137
}

test/jdk/tools/sincechecker/modules/jdk.compiler/JdkCompilerCheckSince.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
/*
2525
* @test
26-
* @bug 8341399
26+
* @bug 8341399 8381475
2727
* @summary Test for `@since` in jdk.compiler module
2828
* @library /test/lib /test/jdk/tools/sincechecker
2929
* @run main SinceChecker jdk.compiler

0 commit comments

Comments
 (0)