Don't allocate huge buffers in ClassReader

2 jobs for master in 4 minutes and 56 seconds (queued for 3 seconds)
Name Stage Failure
build Test
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at

BUILD FAILED in 1m 12s
28 actionable tasks: 7 executed, 21 up-to-date
Cleaning up file based variables
ERROR: Job failed: exit code 1