Abstract Question
A question was asked for a specific language (Kotlin).
An answer exists for a different language (Java).
The answer for the Java post applies to the question tagged Kotlin.
Would it be fair to VTC the question as a duplicate if the language tags don't match, but the duplicate answer still applies?
Concrete Question (Example)
Someone posts a question asking about NullPointerException
in Kotlin.
Would it be justifiable to VTC as a duplicate using:
Or would this call for a new post directed specifically towards Kotlin, since the linked post is for Java?
Specific Situation
I recently voted to close as duplicate:
The duplicate I used was:
Apparently the question I VTCed was closed. Soon after, someone reopened it instantly. They commented:
I've reopened the question since it asks about Kotlin, not Java. While Kotlin and Java are similar in this aspect, Kotlin instance construction is not equivalent to that in Java (at least it is expressed in different constructs)
The answer in the duplicate was applicable. The OP asked if what they were doing was a flawed design, and why their IDE was giving a warning (why their design caused a warning).
Although this prevents finer details (such as work-arounds for that specific language), if these details aren't requested by the OP, shouldn't the duplicate for a different language still apply?
The OP commented:
ok, I think the accepted answer explains it pretty well. My question may have been more related to java anyway. It was the warning in kotlin that sparked the question though
It was the user who wrote an answer that decided to re-open the post, as they felt Java posts should not be used to VTC Kotlin posts as duplicates.
What is the standard for this situation?
If we should avoid VTCing as duplicate when the duplicate is for a different language (yet the answer still applies), should I be voting to reopen such posts when I see this occur?