aboutsummaryrefslogtreecommitdiff
path: root/test/core/src/lombok
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2021-02-04 21:59:32 +0100
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2021-02-04 21:59:32 +0100
commitadf30952462ad8380cf92c742e208b72c572cc98 (patch)
treed2550af00ec2b67ba2866a0b9bad7fc8be8eb58e /test/core/src/lombok
parent3d3a4c322af4cf7f27679661efaa9dcd685165bb (diff)
downloadlombok-adf30952462ad8380cf92c742e208b72c572cc98.tar.gz
lombok-adf30952462ad8380cf92c742e208b72c572cc98.tar.bz2
lombok-adf30952462ad8380cf92c742e208b72c572cc98.zip
[issue #2730] Javadoc generated by lombok in javac now gets its position set.
This may fix 'IllegalArgumentException' errors when using google errorprone.
Diffstat (limited to 'test/core/src/lombok')
-rw-r--r--test/core/src/lombok/RunTestsViaDelombok.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/core/src/lombok/RunTestsViaDelombok.java b/test/core/src/lombok/RunTestsViaDelombok.java
index 433d8b07..d4df50d7 100644
--- a/test/core/src/lombok/RunTestsViaDelombok.java
+++ b/test/core/src/lombok/RunTestsViaDelombok.java
@@ -99,6 +99,10 @@ public class RunTestsViaDelombok extends AbstractRunTests {
try {
if (tree instanceof JCModifiers) return;
+ if (!Javac.validateDocComment(unit, tree)) {
+ fail("Start position of doc comment (" + Javac.getDocComment(unit, tree) + ") of " + tree + " not set");
+ }
+
if (tree.pos == -1) {
fail("Start position of " + tree + " not set");
}