Hi all...Just started getting this message in IDEA...
# announcements
n
Hi all...Just started getting this message in IDEA community after upgrading to kotlin 1.4.30
'@JvmOverloads' annotation cannot be used on constructors hidden by inline class rules
The class in question seems straightforward
Copy code
class AudioClassifyWorkflowParameters @JvmOverloads constructor(...
I'm not clear how to interpret the error, as I don't know what "hidden by inline class rules" is referring to. Any insight appreciated.
m
What parameters does the constructor have? Sounds like one of them is of an
inline class
type which doesn’t seem to be supported.
n
There is, indeed, an inline class being used as a constructor arg. Is it possible that was previously allowed.
m
Maybe. And potentially caused unexpected or undefined behavior before.
inline class
weren’t really supposed to be used from Java code. They will be in the future when they’re fully implemented and Java has their own version of them.
a
This was intentionally forbidden: https://youtrack.jetbrains.com/issue/KT-43525.
113 Views