scala/scala — pull request #1208 by paulp (2012-08-28 23:05:53+00:00)
Title: More fix for invalid companions.

Eliminated InvalidCompanions exception entirely. Anyone's
guess why we unholstered this exception every time someone
calls "isCodefinedWith" rather than when symbols are created.
I moved the check into Namers, where it can be done once and
with sufficient finesse not to crash so much.

With this patch in place, "playbench" can be built with java7.