Require java 11#2385
Conversation
|
I approved, but would like @radumereuta to look at the It seems like we should use it sparingly, specifically only when (i) it's very clear from visual inspection what type the |
|
The reason I chose to use |
|
Technically it's not necessary because we are actually targeting java 11 bytecode and we are using the maven enforcer plugin to reject older versions of java during source builds, but I would prefer to have at least one java 11 feature in the codebase somewhere in order to make sure that something breaks if we aren't properly supporting java 11. Also, while your preference may be for more verbose code, there's no reason to enforce that preference on all K developers if the automatically typed variable is still obviously of a certain type. Regardless, this ought to merge as soon as the tests pass. |
Let me reiterate. It's just a personal preference of mine. I am not enforcing it on anyone. I will not mention it on any code review. The JVM team knows better.
That's what I wanted to say. It will force my IDE to target java 11 also. I don't think you can force that through the setup files. |
We have discovered issues where
kompiledoes not correctly create symlinks if you are running K on Java 8. The simplest solution is simply to require Java 11 in order to use K.We perform the following changes: