4

We were having a problem with an implementation in Java that mixed inheritance and an interface. When the code was not operating as expected, I though my understanding of how Java handled that was incorrect, so I asked the following question: Can a derived class override an interface method implemented in the base class in Java?

It turns out that the problem was something unrelated and the implementation does work.

Now the questions is: What do I do with the question?

Should I:

  1. Just delete it. I don't like this, because it seems still to be a well written valid question and so may be the answer to what another person asks.
  2. Answer it myself and say it does work; but, the issues was something else.
  3. Just leave it as it is (unanswered with clarification in the comments).
7
  • Either: Close as no reproducible. Modify the question so is reflects the real problem and answer it then (unless there already exists such a q&a; or someone already answered yours). Delete it.
    – yivi
    Oct 27, 2017 at 5:13
  • The real cause would have no relevance to anyone else. Oct 27, 2017 at 5:16
  • 3
    If it’s not going to be helpful for future readers, just delete it.
    – yivi
    Oct 27, 2017 at 5:17
  • 1
    It seems like it would be helpful. The answer to the question is "yes" and if I would have know that, I might have found the real bug earlier rather than chasing this 'rabbit'. Oct 27, 2017 at 5:21
  • If it would be useful, then you can edit it to be answerable. The answer needs to be useful, not the question. An unanswered question is not useful.
    – yivi
    Oct 27, 2017 at 5:22
  • If the "unrelated" problem is something that other programmers might run into, and you can provide a useful solution, then the question might be worth keeping around. Otherwise, close as not-reproducible and/or delete. (No issues with deleting, since it hasn't received any answers.) Oct 27, 2017 at 11:11
  • Just because a question you have asked turns out not to be the question you should have asked doesn't mean that the asked question is poor or invalid. A question should be judged on the merits of the question itself and not whether the question is something you need an answer too. Oct 29, 2017 at 22:23

1 Answer 1

4

It turns out that the problem was something unrelated and the implementation does work.

That is a textbook case for the close vote reason "Off topic -> Can't reproduce". For you this probably means you should delete it. I don't think this is a valid question because the answer (as you yourself admitted) will boil down to "No, your code works as expected, your problem is elsewhere".

Questions persist for future users. You yourself admitted that the real cause is very specific to your setup and thus not applicable to other users and of no concern to them. Thus, the same goes for your question, which is unlikely to help anyone else.

1
  • I deleted the post. Oct 27, 2017 at 15:01

You must log in to answer this question.

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