On Wed, 25 Jan 2023 04:14:24 GMT, Alex Menkov <amen...@openjdk.org> wrote:
>I'd expect that at least java.util.Date and java.lang.ProcessBuilder have the >same verification requirement. Generally speaking yes - they are both loaded by bootstrap loader and so would both have verification disabled by default. Bt as you note the behaviour can change when CDS is involved and only one class gets dumped. > But in Date has StackMapTable (starting from JDK12-b15), and ProcessBuilder > doesn't has StackMapTable. This seems odd, but not, IMO, in itself a bug. Perhaps @iklam can comment on why we treat things differently during dumping. ------------- PR: https://git.openjdk.org/jdk/pull/12155