#42134Compatibility class loader: Respect newlines in method declarations
Description
The compatibility class loader currently fails
to match method declarations that go over multiple
lines.
Add the /s modifier to the pattern and adjust the testcases.