4

The following question DateTimeParseException - could not be parsed at index 15 contains Kotlin code.

It is tagged with and . Is the Java tag ok here? It seems to concern a problem in the JDK classes.

2

2 Answers 2

2

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.

1

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 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).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .