@Tes yeux noirs,
Tes yeux noirs wrote:
No, because it is the fact of the class being over that he found when he arrived. If something is over it is over for ever, that is, it is over now, and will still be over in the future. Being over never 'completes'. No native speaker would use that sentence without an expression of time such as I showed.
You would not say by the time he arrived at the hospital his grandmother had been dead (another permanent state). You could say by the time he arrived at the hospital his grandmother had been dead for ten minutes, because being dead for ten minutes in the past is a completed thing.
That explanation of the past perfect continuous is limited, and your assertion that "no native speaker would use that sentence without an expression of time" is an unfounded assumption.
According to
englishpage.com, "if you do not include a duration such as 'for five minutes,' 'for two weeks' or 'since Friday,' many English speakers choose to use the Past Continuous rather than the Past Perfect Continuous." It doesn't state that no native speaker would use it otherwise. It goes on to state that "past continuous emphasizes interrupted actions, whereas past perfect continuous emphasizes a duration of time before something in the past," which is exactly what the sentence in question is stating.
Englishgrammarsecrets.com states that we use the past perfect continuous "to say what had been happening before something else happened and includes an example without a duration of time," e.g "it had been snowing for a while before we left."