JDK-8186151 : try simple @build fix in compiler/jsr292/PollutedTrapCounts.java
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 10
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2017-08-11
  • Updated: 2017-10-06
  • Resolved: 2017-08-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 10
10 b21Fixed
Related Reports
Relates :  
Description
Copied from JDK-8182122:

Ioi Lam added a comment - Yesterday
I think this test fails a lot because it happens to be run soon after another test that causes a library split (see my analysis in CODETOOLS-7901986). So instead of quarantining it, maybe it's better to fix it by:

diff -r d1f8431c6d34 test/compiler/jsr292/PollutedTrapCounts.java
--- a/test/compiler/jsr292/PollutedTrapCounts.java Tue Aug 08 22:58:44 2017 +0200
+++ b/test/compiler/jsr292/PollutedTrapCounts.java Thu Aug 10 19:31:09 2017 -0700
@@ -26,7 +26,8 @@
  * @bug 8074551
  * @modules java.base/jdk.internal.misc
  * @library /test/lib
- *
+ * @build jdk.test.lib.*
+ * @build jdk.test.lib.process.*
  * @run driver compiler.jsr292.PollutedTrapCounts
  */

This seems generally safe (and will not make the situation worse) because the test is very simple and it's use of '@library /test/lib' is straightforward. 
Comments
Copied from JDK-8182122: Jonathan Gibbons added a comment - 2 hours ago [~iklam] A single @build directive with multiple arguments would (in general) be better for jtreg. The args can still be split across multiple lines. The files to be compiled will be grouped according to their location (i.e. library or test) and separate compilations will be executed (if necessary) for each location.
11-08-2017