티스토리 뷰

728x90

https://stackoverflow.com/questions/29740078/how-to-call-super-constructor-in-lombok

 

how to Call super constructor in Lombok

I have a class @Value @NonFinal public class A { int x; int y; } I have another class B @Value public class B extends A { int z; } lombok is throwing error saying it cant find A()

stackoverflow.com

https://velog.io/@nawhew/%EB%A1%AC%EB%B3%B5-AllArgumentConstructor%EB%8A%94-%EC%9E%90%EC%8B%9D-%ED%81%B4%EB%9E%98%EC%8A%A4%EC%97%90%EC%84%9C-super%EB%A1%9C-%ED%98%B8%EC%B6%9C-%ED%95%98%EC%A7%80-%EB%AA%BB%ED%95%9C%EB%8B%A4

 

롬복 @AllArgumentConstructor는 자식 클래스에서 super로 호출 하지 못한다

아래의 예제에서 Parent를 상속받은 Child에서 Parent의 생성자를 호출 하지 못한다.부모클래스자식클래스how to Call super constructor in Lombok위의 질문에 롬복 개발자가 남긴 답변This is not possible in Lomb

velog.io

 

728x90

'공부' 카테고리의 다른 글

[IntelliJ] Use single level import  (0) 2023.11.03
[Spring] @PathVariable 기본값 설정하기  (0) 2023.11.03
[spring] jpa option  (0) 2023.11.03
[Spring] JPA DB자료형 매핑  (0) 2023.11.03
[sh] E212: Can't open file for writing  (0) 2023.11.03
댓글