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
  • Yes and no. If this was about plain Kotlin, yes. When OP says it's Android, arguably, Android takes priority over Java. All three tags can strictly speaking be present, but doesn't make sense in this case. Commented Feb 16, 2021 at 20:14
  • 3
    Arguably, the [kotlin] tag wiki should include that sort of usage information, but currently includes nothing close.
    – zcoop98
    Commented Feb 16, 2021 at 21:04

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 .