So that way, both from java and kotlin i would use...
# announcements
f
So that way, both from java and kotlin i would use same package and same class name (consistency problem)
n
Why you don’t add java method if it’s your class ?
e
Seems like this requires
.class
file merging, don’t know if is it possible.
f
I do not want to maintain both classes and I want to use it as an extension in kt classes
So there would be just one ViewUtil in whole project. and both kotlin and java classes use that instance
e
Seems like you cannot use the trick
@file:JvmName("ViewUtil")
, the compiler will complain the Java class saying
duplicate class found
1
f
Exactly, but im wondering if that is possible. Maybe i should ask #C0B9K7EP2
e
That would require the compiler to merge the two generated
.class
files, which is what I mentioned above.