Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] [Eclipse] @SuperBuilder Type mismatch: cannot convert from List<String> to List<E> when using @Size #3714

Open
danibs opened this issue Jul 31, 2024 · 0 comments

Comments

@danibs
Copy link

danibs commented Jul 31, 2024

Eclipse complains with Type mismatch: cannot convert from List<String> to List<E> when using @Size and constant.

@SuperBuilder( toBuilder = true )
public abstract class AAA {
}
@Value
@SuperBuilder( toBuilder = true )       //<-- here
@EqualsAndHashCode( callSuper = true )
public class Internal extends AAA {
	private static final int DESCRIPTION_SHORT = 100;

	List<@NotBlank @Size( max = DESCRIPTION_SHORT ) String> exemptions;
}

If I replace:

@Size( max = DESCRIPTION_SHORT ) 

with:

@Size( max = 100 ) 

no errors are reported.

Version info:

  • Lombok version: 1.18.34
  • Platform: Spring Tool Suite 4 Version: 4.24.0.RELEASE (for Ubuntu),
  • javac -version: javac 21
  • java -version: openjdk version "21" 2023-09-19 LTS
    OpenJDK Runtime Environment Temurin-21+35 (build 21+35-LTS)
    OpenJDK 64-Bit Server VM Temurin-21+35 (build 21+35-LTS, mixed mode, sharing)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant