Numerous tests I have written use copy-pasted code for creating source files, compiling them, and checking the results.  This should be consolidated into test library code.
            
- duplicates
- 
                    JDK-8026890 Test library for compiling dynamically-generated java code and inspecting class files and diagnostics -           
- Closed
 
-         
 P4
  P4