8321622: ClassFile.verify(byte[] bytes) throws unexpected ConstantPoolException, IAE

Reviewed-by: jpai
This commit is contained in:
Adam Sotona 2024-05-16 07:32:24 +00:00
parent ab8d7b0ced
commit ee4a9d3482

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -285,7 +285,6 @@ public final class VerifierImpl {
} catch (VerifyError err) {
errorsCollector.add(err);
} catch (Error | Exception e) {
e.printStackTrace();
errorsCollector.add(new VerifyError(e.toString()));
}
}