We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9a4b93 commit f1db0efCopy full SHA for f1db0ef
spring-core-test/src/main/java/org/springframework/core/test/tools/TestCompiler.java
@@ -365,9 +365,11 @@ private String toMessage(Diagnostic<? extends JavaFileObject> diagnostic) {
365
if (diagnostic.getSource() != null) {
366
message.append(' ');
367
message.append(diagnostic.getSource().getName());
368
- message.append(' ');
369
- message.append(diagnostic.getLineNumber()).append(':')
370
- .append(diagnostic.getColumnNumber());
+ if (diagnostic.getLineNumber() != -1 && diagnostic.getColumnNumber() != -1) {
+ message.append(' ');
+ message.append(diagnostic.getLineNumber()).append(':')
371
+ .append(diagnostic.getColumnNumber());
372
+ }
373
}
374
return message.toString();
375
0 commit comments