The following question DateTimeParseException - could not be parsed at index 15 contains Kotlin code.
It is tagged with kotlin and java. Is the Java tag ok here? It seems to concern a problem in the JDK classes.
The following question DateTimeParseException - could not be parsed at index 15 contains Kotlin code.
It is tagged with kotlin and java. Is the Java tag ok here? It seems to concern a problem in the JDK classes.
In this case, yes, because the problematic component was a class provided with the JRE.
In general, no. Because Java and Kotlin are different languages.
I would prefer a way to highlight posts that use java and kotlin tags simultaneously before submitting and asking the author to double check them, because it seems that very often the tags are used incorrectly.
From the profile of the answerer it seems as if this question was answered by someone following the Java tag. If we see the tag system as means to get questions to answerers, then I'd say that adding java was the right thing to do.
Also as one can use code written in Java in code written in Kotlin it is in general totally fine to tag both languages if both are involved (unless the answer's code is supposed to be in one of the languages, in that case the question should clearly decide).