File tree Expand file tree Collapse file tree
main/java/io/opentelemetry/javaagent/customchecks
test/java/io/opentelemetry/javaagent/customchecks
instrumentation/jdbc/library/src/test/java/io/opentelemetry/instrumentation/jdbc/internal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -248,6 +248,7 @@ jobs:
248248 - 21
249249 - 25 # renovate(java-version)
250250 - 25-deny-unsafe
251+ - 26-ea
251252 vm :
252253 - hotspot
253254 - openj9
@@ -263,6 +264,8 @@ jobs:
263264 - vm : ${{ inputs.skip-openj9-tests && 'openj9' || '' }}
264265 - test-java-version : 25-deny-unsafe
265266 vm : openj9
267+ - test-java-version : 26-ea
268+ vm : openj9
266269 fail-fast : false
267270 steps :
268271 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
Original file line number Diff line number Diff line change 2727import static com .google .errorprone .util .ASTHelpers .getGeneratedBy ;
2828import static com .google .errorprone .util .ASTHelpers .getSymbol ;
2929import static com .google .errorprone .util .ASTHelpers .getType ;
30+ import static com .google .errorprone .util .ASTHelpers .hasExplicitSource ;
3031import static com .google .errorprone .util .ASTHelpers .isGeneratedConstructor ;
3132import static com .google .errorprone .util .FindIdentifiers .findIdent ;
3233import static com .sun .tools .javac .code .Kinds .KindSelector .VAL_TYP ;
6465import com .sun .tools .javac .code .Symbol .PackageSymbol ;
6566import com .sun .tools .javac .code .Symbol .TypeSymbol ;
6667import com .sun .tools .javac .code .Type ;
67- import com .sun .tools .javac .util .Position ;
6868import java .util .ArrayList ;
6969import java .util .HashSet ;
7070import java .util .List ;
@@ -235,7 +235,7 @@ private void handle(TreePath path) {
235235 if (isDeprecatedForRemoval (symbol )) {
236236 return ;
237237 }
238- if (state . getEndPosition (tree ) == Position . NOPOS ) {
238+ if (! hasExplicitSource (tree , state ) ) {
239239 return ;
240240 }
241241 List <TreePath > treePaths = table .get (tree .getIdentifier (), symbol .type .tsym );
Original file line number Diff line number Diff line change @@ -161,9 +161,9 @@ void positiveCases_externalDeprecatedApi() {
161161 "ExternalDeprecated.java" ,
162162 "package test;" ,
163163 "public class ExternalDeprecated {" ,
164- " void method(Thread t ) {" ,
164+ " void method() {" ,
165165 " // BUG: Diagnostic contains: Use of deprecated API" ,
166- " t.stop( );" ,
166+ " new Boolean(false );" ,
167167 " }" ,
168168 "}" )
169169 .doTest ();
Original file line number Diff line number Diff line change 1515import java .sql .ResultSet ;
1616import java .sql .Statement ;
1717import org .junit .jupiter .api .Test ;
18+ import org .junit .jupiter .api .condition .EnabledForJreRange ;
19+ import org .junit .jupiter .api .condition .JRE ;
1820
1921class WrapperTest {
2022
23+ // we don't implement methods introduced in jdbc 4.5 (added in java 26) yet
24+ @ EnabledForJreRange (max = JRE .JAVA_25 )
2125 @ Test
2226 void wrapperImplementsAllMethods () throws Exception {
2327 validate (Statement .class , OpenTelemetryStatement .class );
You can’t perform that action at this time.
0 commit comments