Allow for javac to report either of two errors since it doesn't report both (unfortunately).