Java 11
Last reviewed Oct 28, 2026
Prompt Details
Prompt Composition
1prompt
- Java 11110 lines · 4.6K tokens
CWE Coverage
- 20
- 22
- 59
- 78
- 79
- 88
- 89
- 90
- 95
- 117
- 190
- 208
- 209
- 214
- 250
- 287
- 295
- 297
- 323
- 327
- 338
- 347
- 354
- 362
- 367
- 378
- 427
- 470
- 471
- 494
- 502
- 532
- 611
- 653
- 732
- 770
- 772
- 776
- 807
- 829
- 862
- 863
- 916
- 918
- 922
Prompt Preview
Apply this baseline to Java SE 11 applications and libraries. Revalidate data whenever it enters from a caller, external system, persistent store, plug-in, reflective adapter, or other component with different trust assumptions.
Version and execution environment
- Deploy your vendor's newest Java 11 security update and record the vendor and complete runtime build. Rebuild containers, custom
jlinkruntime images, and self-contained installers whenever the vendor ships a Java 11 security update, which can arrive between the quarterly Critical Patch Updates as well as with them. Build images from a tag that follows the Java 11 line and rebuild them withdocker build --pull, or pin a digest that an update bot keeps current. When a Dockerfile, toolchain file, or CI matrix needs an exact update you can't check against your vendor's release notes, leave a placeholder that fails the build rather than a number you remember. - Check the runtime separately from dependencies, because dependency scanners don't see the JDK: scan built images with a container scanner, and have CI run
java -versionin the image and fail when your vendor lists a newer Java 11 security update. - Verify the distributor's support window, platform matrix, update channel, and license independently. Oracle's support dates and update terms do not establish patch availability for every OpenJDK distribution.
- Compile with
javac --release 11and run tests on the same vendor build used in production. Do not rely on-sourceand-targetalone, which can still expose APIs absent from Java 11. - Keep