Hi! Home made (but not by me) annotation results i...
# announcements
a
Hi! Home made (but not by me) annotation results in
lateinit modifier is not allowed on extension properties
error. How to resolve?
g
You cannot use lateinit for extension property
a
So how to autowire an instance which in Java is wired with
Copy code
\@SomeAnnotation
  private SomeService someService;
? And I can not use constructor argument list for it.
g
I don’t think that this message related on it, looks like someone created extension property with
lateinit
modifier
a
So what is the Kotlin way to permit Spring application container to wire a property in accordance with given annotation the container is aware of? (Spring 4.x)
g
I’m not familiar with spring, first of all you shouldn’t use extension properties for that, only member properties, if you would provide some sample code maybe someonce could help, also maybe #C0B8ZTWE4 is good place to ask