Skip to content

[BUG] Very slow compilation when lombok.val is combined with jdk 11 #2131

@rzukow

Description

@rzukow

Describe the bug
Code with some number of lombok.val compiles very slowly on jdk 11 (5s on jdk8 vs 2 minutes on jdk 11)

To Reproduce
Prepare a java project with hundreds of lombok.val and compile it on jdk11

Expected behavior
Compilation of code with lombok.val with jdk 11 should not be slower comparing to jdk 8

Version info (please complete the following information):

  • Lombok 1.18.8
  • openjdk version "11.0.3" 2019-04-16 LTS
  • Gradle 5.4.1

** Workaround
As in jdk 11 you don't need val so much, I replaced few hundreds of vals with java 11 vars and this fixed the issue. It compiles in seconds instead of minutes.
But I think this is still a bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions