ImageLayoutException is used to report any issues with image layout calculation. But since we cannot throw the unspecified exception to the application, all usages of ImageLayoutException are wrapped by the CMMException. And now if such CMMException occurs we have lost at what point the initial exception was raised.
We can pass some additional data around, but it looks like we can just delete the ImageLayoutException and use CMMException instead. Additionally: * The `public` keyword is removed in a few places if not needed. * The PT_XX flags are updated to make it clearly visible how they are related. ------------- Commit messages: - Simplify rge PT_XXX and replace public - delete ImageLayoutException Changes: https://git.openjdk.org/jdk/pull/11552/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11552&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8298240 Stats: 175 lines in 2 files changed: 13 ins; 79 del; 83 mod Patch: https://git.openjdk.org/jdk/pull/11552.diff Fetch: git fetch https://git.openjdk.org/jdk pull/11552/head:pull/11552 PR: https://git.openjdk.org/jdk/pull/11552