Imagine, a company, contributes to a huge Apache 2.0 project. The company owns a patent. The project is huge, and there's a small fragment of its code which infringes on the patent. The company submits a contribution to unrelated code fragment.
Does such a contribution give a license grant to the patent?
Apache 2.0 has the following patent grant:
Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted.
It says, applies only to those patent claims. What does it mean exactly in respect to the situation above?