is it possible that in some cases kotlin generates methods that are not marked as synthetic, and have no associated source file? I’m using pitest for my project and pitest needs source files for all non synthetic methods (which makes sense imo)
this is how the class looks in “show kotlin bytecode”: https://gist.github.com/christophsturm/1f46f14dde1a61a14ce449b0632f883c
g
gildor
05/06/2020, 5:04 AM
I’m pretty sure it’s the case, for example data class generates toString, equals, hashcode, copy, componentN and they cannot be synthetic, because they must be available
gildor
05/06/2020, 5:04 AM
also true for internal modifiers
c
christophsturm
05/06/2020, 7:52 AM
interesting. pitest does work for data classes.
g
gildor
05/06/2020, 7:55 AM
maybe they have special handling for data classes?
gildor
05/06/2020, 7:56 AM
Like Jacoco, which just ignores those methods in coverage report