Open
Description
Annotating a primary constructor is pretty ugly. For example:
@Component
class Foo @Autowired()(val bar: Bar) {
//...
}
It would be nice if you could target what would normally be a class annotation at the primary constructor - for example:
object Annotations {
type AutowiredConstructor = Autowired @primaryConstructor
}
@Component
@AutowiredConstructor
class Foo(val bar: Bar) {
//...
}
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
scabug commentedon Apr 6, 2012
Imported From: https://issues.scala-lang.org/browse/SI-5647?orig=1
Reporter: Eric Pederson (ericacm)
See #4242
scabug commentedon May 12, 2012
@soc said:
Action on one ticket will probably have effect on the other one: #4242 / #5647.
scabug commentedon Sep 17, 2014
@retronym said:
Recently requested by the Play team for the same reason.