Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update LineNumbers to ignore all kinds of exceptions when reading cla…
…sses with ASM, so Guice is less finicky about the precise .class version & ASM version. A while ago I had tried to do this by ignoring UnsupportedOperationException, but per #1654, ASM doesn't always throw UOE. This change will log a single failure when Guice encounters an exception while reading classfiles and warn that ASM may be out of date. The consequences of this failing _all_ line number reading (due to, say, an accidental bug introduced while parsing classfiles) is that Guice won't emit line numbers for bind statements in modules (as binding source locations). A number of other tests would fail in that scenario, warning us that something is off. PiperOrigin-RevId: 524365509
- Loading branch information