Skip to content

Commit d78d4b7

Browse files
committed
Change the warning 'compiler does not support source tree parsing during annotation processing' to a note to avoid failing -Werror build
1 parent 4583133 commit d78d4b7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

graalpython/com.oracle.graal.python.processor/src/com/oracle/graal/python/processor/CApiBuiltinsProcessor.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* The Universal Permissive License (UPL), Version 1.0
@@ -70,6 +70,7 @@
7070
import javax.lang.model.type.TypeMirror;
7171
import javax.lang.model.util.AbstractAnnotationValueVisitor14;
7272
import javax.lang.model.util.ElementFilter;
73+
import javax.tools.Diagnostic.Kind;
7374
import javax.tools.StandardLocation;
7475

7576
import com.oracle.graal.python.annotations.CApiConstants;
@@ -121,8 +122,8 @@ public synchronized void init(ProcessingEnvironment pe) {
121122
try {
122123
this.trees = Trees.instance(pe);
123124
} catch (Throwable t) {
124-
// ECJ does not support this, so we skip the some processing of C API builtins
125-
pe.getMessager().printWarning("The compiler does not support source tree parsing during annotation processing. Regeneration of Python C API builtins will be incorrect.");
125+
// ECJ does not support this, so we skip the processing of C API builtins
126+
pe.getMessager().printMessage(Kind.NOTE, "The compiler does not support source tree parsing during annotation processing. Regeneration of Python C API builtins will be incorrect.");
126127
this.trees = null;
127128
}
128129
}

0 commit comments

Comments
 (0)