4105 Commits
Author SHA1 Message Date
Roel Spilker e50d44b071 Add capability to only fail when running tests. 2026-09-09 01:00:56 +02:00
Reinier Zwitserloot 2cbf6f766b Merge branch '4070-superbuilder-non-ascii' 2026-09-08 23:44:25 +02:00
Reinier Zwitserloot 639bc2a4d1 [#4070] fixed - reflected in changelog. 2026-09-08 23:44:04 +02:00
Reinier Zwitserloot 2e5bff41ea [#4070] Add tests for complex superclass names for @SuperBuilder as well. 2026-09-08 23:44:04 +02:00
Burak KALAYCI 4bbc653394 [#4070] Fix SuperBuilder for non-ASCII superclass simple names
javac pretty-prints JCIdent via toString() using unicode escapes.
Use the identifier Name so Hangul (and other non-ASCII) superclass
simple names generate a valid builder type reference.
2026-09-08 23:44:04 +02:00
Reinier Zwitserloot 3052918430 Merge pull request #4077 from not-pishii/fix/delegate-jdt-npe
[jdt]: check `decl.methods` for `null` in `PatchDelegate`
2026-09-08 22:24:58 +02:00
not-pishii 7cb6a9af15 [jdt]: check decl.methods for null in PatchDelegate 2026-09-04 14:26:40 +03:00
Roel Spilker 6d6a3e9fec Update changelog.markdown 2026-09-04 12:23:18 +02:00
Reinier Zwitserloot 8818884081 [version] post-release version bump v1.18.48 2026-09-01 23:08:58 +02:00
Reinier Zwitserloot b48657c83c [version] pre-release version bump v1.18.48 2026-09-01 22:29:26 +02:00
Reinier Zwitserloot d1d003945f Merge branch 'jdk27' 2026-08-28 01:08:47 +02:00
Reinier Zwitserloot 1a23dad52c [review][refactor] No meaningful changes: Improved comments, javadoc, and cleaned up some code. 2026-08-28 01:02:56 +02:00
Danish Nawab 40cdde8150 [changelog] JDK27 support 2026-08-26 16:37:07 +02:00
Danish Nawab 25eae29093 Add Danish Nawab to AUTHORS 2026-08-26 16:15:38 +02:00
Danish Nawab 10ab92b5d9 Support JDK27: end positions moved from EndPosTable to JCTree.endpos
JDK27 removed com.sun.tools.javac.tree.EndPosTable and stores end
positions directly on tree nodes (JDK-8372948). Lombok resolved that
class in a static initializer and rethrew on failure, so the processor
never initialized and every compilation on JDK27 failed.

- Javac: probe for EndPosTable; when absent, use the no-arg
  DiagnosticPosition.getEndPosition() and write JCTree.endpos directly
- CommentCatcher: skip setting genEndPos where the field no longer exists
- new java27 parser factory: JDK27 dropped the keepEndPositions
  parameter from JavacParser and ParserFactory.newParser
- DocCommentIntegrator: implement the new no-arg getEndPosition()
- PrettyPrinter: drop an unused reflective getEndPosition lookup that
  would fail class init on JDK27
- add an opt-in test.javac27 target

Fixes #4072
2026-08-24 11:06:20 +02:00
Roel Spilker af01b7a27b Document the new configuration syntax for listy things 2026-08-21 13:21:48 +02:00
Roel Spilker 1be3857dfe There is no more HtAccess 2026-08-21 13:09:20 +02:00
Roel Spilker 405985dd25 Semantic sections for website 2026-08-21 03:20:29 +02:00
Reinier Zwitserloot 04b73406d0 [trivial] fixing some outdated tests (tests were broken, not lombok). 2026-08-21 03:14:01 +02:00
Reinier Zwitserloot befe77d211 Merge branch 'builder-class-name-conflict' 2026-08-21 03:13:56 +02:00
Reinier Zwitserloot f1989068ab [trivial][style] 2026-08-21 03:13:42 +02:00
snowykte0426 96c47f14b5 Add Taeeun Kim to AUTHORS 2026-08-21 03:13:42 +02:00
snowykte0426 ecf421849c Fix builder class name annotation collision 2026-08-21 03:13:42 +02:00
Roel Spilker 6c5295bc38 Update copyright year 2026-08-21 02:59:37 +02:00
Reinier Zwitserloot 84f8baf3d5 Merge branch 'check-return-value' 2026-08-21 02:57:59 +02:00
Reinier Zwitserloot 4cfdf21430 [test] Fix tests to reflect updates to @CheckReturnValue feature. 2026-08-21 02:57:22 +02:00
Reinier Zwitserloot f6fab0dafb [trivial] Add some type param hints so older javacs can compile it. 2026-08-21 02:42:00 +02:00
Reinier Zwitserloot 02c68c112d [docs][config: lombok.CheckReturnValue] 2026-08-21 02:42:00 +02:00
Reinier Zwitserloot e76ba71721 [config: lombok.CheckReturnValue]: setting is now a list of possible flavours, do not apply if building for a method, add to getter/hc/equals/toString. 2026-08-21 02:42:00 +02:00
Reinier Zwitserloot 5aa26873fd [checkerframework] @SEF now added to generated constructors; @Builder's build() no longer @SEF if building for a non-SEF method. 2026-08-21 02:42:00 +02:00
Tim te Beek 54bc6c24d3 [feature][@CheckReturnValue] Add Tim te Beek to AUTHORS 2026-08-21 02:41:59 +02:00
Tim te Beek dc1ba17b4d [feature][@CheckReturnValue] Replace boolean opt-in with enum-valued lombok.checkReturnValueAnnotation config key.
Per PR #4013 review, swap the boolean `lombok.addCheckReturnValueAnnotation`
for an enum-valued `lombok.checkReturnValueAnnotation` (values: `none`,
`lombok`; default: `none`). This leaves room for additional flavors
(`jetbrains`, `errorprone`, `custom: FQN`) in future releases without
another key rename, and for flipping the default to `lombok` after a
release cycle or two.

# Conflicts:
#	doc/changelog.markdown
2026-08-21 02:41:59 +02:00
Tim te Beek 14f52226b6 [feature][@CheckReturnValue] Make @CheckReturnValue opt-in rather than opt-out to avoid breaking existing tests. 2026-08-21 02:41:59 +02:00
Tim te Beek cdfb0f551e [feature][@CheckReturnValue] Add @lombok.CheckReturnValue to generated methods where the return value should not be ignored.
Adds the annotation to @With, @WithBy, @Builder.build(), and @SuperBuilder.build() methods. Controlled via lombok.addCheckReturnValueAnnotation config key (default: true). Static analysis tools (Error Prone, IntelliJ, SpotBugs) recognize @CheckReturnValue by simple name and will warn when the return value is discarded.
2026-08-21 02:41:59 +02:00
Roel Spilker 277c7bf34a Allow listy configuration keys to use = to force a list to a single value 2026-08-21 01:18:05 +02:00
Reinier Zwitserloot 1bcf9ff418 [deps] updating to patcher release v0.60. 2026-08-07 02:00:41 +02:00
Reinier Zwitserloot dc9580ac18 [website] SuperBuilder has been promoted; this promotion is now reflected in the docs. 2026-08-07 01:56:48 +02:00
Reinier Zwitserloot 6ef04d9606 [old-cruft] Removed old lombok.Delegate (it's in experimental now) and lombok.experimental.Wither (it's in main now). 2026-08-07 01:11:31 +02:00
Reinier Zwitserloot 2e177996fb [promotion] SuperBuilder promoted to main package. 2026-08-07 01:11:31 +02:00
snowykte0426 ad8a656158 Document Ant annotation processing on JDK 23 2026-08-07 00:45:06 +02:00
Roel Spilker c934a838a9 Remove dependency on GitHub specific features 2026-08-07 00:38:39 +02:00
Reinier Zwitserloot c8f91b5294 [#4040] Fixed: Javac26 would fail to eliminate the runtime dep when using @SneakyThrows. 2026-05-14 01:14:57 +02:00
Reinier Zwitserloot ba2d0e8d59 [version] post-release version bump 2026-04-22 01:24:32 +02:00
Reinier Zwitserloot 936ca59baf [build] lombok's launcher is still intended to be 1.4 compatible, or at least, now is not the moment to rework the build, and this commit isn't worth the pain. Removed the generics. 2026-04-22 01:16:02 +02:00
Reinier Zwitserloot fcdab3f29e [version] pre-release version bump 2026-04-22 01:13:03 +02:00
Reinier Zwitserloot 1cb7d49c5d [changelog][#4004] Mention Jackson3 final touches in changelog. 2026-04-22 01:10:25 +02:00
Neale Upstone 12a15b0055 Fix: Bump EA_JDK to 27 (25 and 26 have been released)
Attempt to use EA logic for JDK 25 was failing.
2026-04-22 00:56:49 +02:00
Reinier Zwitserloot 2be766cfc2 Merge branch 'jackson3-final-touches' 2026-04-22 00:49:54 +02:00
Reinier Zwitserloot 290fa4c853 [trivial] constantize the warning we spit out for ambiguous jackson2/3, and match style to lombok project style. 2026-04-22 00:49:48 +02:00
Sebastian Mandrean e6567b6621 test: Add Jackson 3 test cases and version ambiguity warnings
Add JacksonizedAccessorsJackson3 test case verifying that @Jacksonized
with jacksonVersion=3 emits the correct annotations.

Add expected warning messages for tests that have both Jackson 2 and 3
on the classpath without explicit version configuration, and fix
JacksonizedSuperBuilderWithJsonDeserialize message expectations.
2026-04-22 00:49:30 +02:00