Skip to content

Commit

Permalink
8271224: runtime/EnclosingMethodAttr/EnclMethodAttr.java doesn't chec…
Browse files Browse the repository at this point in the history
…k exit code

Backport-of: 68dd828
  • Loading branch information
Andrew Lu committed Dec 29, 2023
1 parent 234d2f0 commit 823b65a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2021, 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
Expand Down Expand Up @@ -44,6 +44,7 @@ public static void main(String args[]) throws Throwable {
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
"-jar", testsrc + File.separator + "enclMethodAttr.jar");
OutputAnalyzer output = new OutputAnalyzer(pb.start());
output.shouldNotHaveExitValue(0);
output.shouldContain("java.lang.ClassFormatError: Wrong EnclosingMethod");
}
}
Expand Down

1 comment on commit 823b65a

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.