why wouldn't you recommend it (i haven't read what...
# announcements
t
why wouldn't you recommend it (i haven't read what it does yet)
k
It basically marks those methods as synthetic in the byte code, which has a different use case altogether. Checkout https://www.javaworld.com/article/2073578/java-s-synthetic-methods.html Making them hidden from Java is just one of it’s side effects
t
yeah, trying to read about it
but i don't understand how that can have any downsides yet
k
I don’t think there’s any particular downside to it. I guess it’s just using the wrong tool to solve a problem
t
what would the right tool be?
k
Haha. If I knew, we would be having a different kind of conversation 😄
t
i feel like if they always made getters/setters synthetic for
internal
properties, it would behave a lot more like the name implies
k
But that would also make the getter/setters invisible from Java, even in the same module
t
i feel like that's better than exposing it as
Copy code
get<property>$production_sources_for_module_<module>
set<property>$production_sources_for_module_<module>
that doesn't look like something you're supposed to use
k
that doesn’t look like something you’re supposed to use
Exactly ☝️
t
but that's how it looks from the same module in java..?
if you use
internal
k
Yep. Only difference is that IDEA highlights it as error from a different module
t
yeah, no.. this doesn't make sense to me
i think they should be invisible to java, even in the same module
but i'll use your hack for now, thanks 😬
👍 1