There was a problem hiding this comment.
This PR rewrites docs/IMPLEMENTING_JRES.md to document the newer BaseJRE template-method pattern (introduced in #1288) and remove the older long-form “manual boilerplate” JRE provider implementation guidance.
Changes:
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Sorry, something went wrong.
| ### Detection | ||
|
|
||
| ### Version Selection | ||
| `BaseJRE.Detect()` calls `DetectJREByEnv(jreKey)` which returns `true` when: |
| ``` | ||
| -Xmx512M -Xms512M -XX:MaxMetaspaceSize=128M -Xss1M -XX:ReservedCodeCacheSize=32M | ||
| ``` | ||
| `stack_threads` — number of user threads (default: 200); affects `-Xss` heap budget. |
| ```bash | ||
| cf env myapp | grep JBP_CONFIG_COMPONENTS | ||
| ``` | ||
| **Wrong Java version selected** — check resolution order: `BP_JAVA_VERSION` → `JBP_CONFIG_<KEY>_JRE` → manifest default. Enable debug: `cf set-env myapp BP_LOG_LEVEL DEBUG`. |
Summary
What changed
Related
Follows #1288 (BaseJRE refactor that this doc now describes)
Please review if complete or must be extended.