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: 68dd8280886ede7f5cd8d34811ad0f9ffac440f3
  • Loading branch information
GoeLin committed Mar 10, 2022
1 parent 6fb49c3 commit f79a4ed
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, 2020, 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 {
System.out.println("Regression test for bug 8044738");
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("EnclMethTest");
OutputAnalyzer output = new OutputAnalyzer(pb.start());
output.shouldNotHaveExitValue(0);
output.shouldContain("java.lang.ClassFormatError: Wrong EnclosingMethod");
}
}
Expand Down

1 comment on commit f79a4ed

@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.