spring-data-r2dbc icon indicating copy to clipboard operation
spring-data-r2dbc copied to clipboard

java.lang.IllegalStateException: Required property not found for class

Open cooperlyt opened this issue 10 months ago • 2 comments

class SomeData(fieldOne: String, fieldTwo: String){
  private val combo: ComboClass = ComboClass(fieldOne, fieldTwo)

  fun getCombo() {
     return combo
  }
}

throw exception : java.lang.IllegalStateException: Required property not found for class

but change to :

class SomeData(private val fieldOne: String, private val fieldTwo: String){
  private val combo: ComboClass = ComboClass(fieldOne, fieldTwo)

  fun getCombo() {
     return combo
  }
}

it's OK! or fieldOne and fieldTwo have getter that is OK too!

cooperlyt avatar Apr 15 '24 03:04 cooperlyt

If you would like us to spend some time helping you to diagnose the problem, please spend some time describing it and, ideally, providing a minimal yet complete sample that reproduces the problem. You can share it with us by pushing it to a separate repository on GitHub or by zipping it up and attaching it to this issue.

mp911de avatar Apr 15 '24 07:04 mp911de

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

spring-projects-issues avatar Apr 22 '24 07:04 spring-projects-issues

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.

spring-projects-issues avatar Apr 29 '24 07:04 spring-projects-issues