Tags like `@compile/process -cp . -processor TypeToString -proc:only Test` lead to a -1 values as the insert position in jtreg compile action.
Source: https://github.com/openjdk/jdk/blob/ffd850f17efc88dddfeab629f829a03ad22dc49d/test/langtools/tools/javac/TypeToString.java#L32
Fix: check for -1 values and use 0 instead - this will prepend `--enable-preview` and `--source N` before any variadic arguments.
```
java.lang.IndexOutOfBoundsException: Index: -1, Size: 6
at java.base/java.util.ArrayList.rangeCheckForAdd(ArrayList.java:839)
at java.base/java.util.ArrayList.add(ArrayList.java:511)
at com.sun.javatest.regtest.exec.CompileAction.run(CompileAction.java:370)
at com.sun.javatest.regtest.exec.RegressionScript.run(RegressionScript.java:267)
at com.sun.javatest.Script.run(Script.java:431)
at com.sun.javatest.DefaultTestRunner.runTest(DefaultTestRunner.java:183)
at com.sun.javatest.DefaultTestRunner$1.run(DefaultTestRunner.java:76)
```
Source: https://github.com/openjdk/jdk/blob/ffd850f17efc88dddfeab629f829a03ad22dc49d/test/langtools/tools/javac/TypeToString.java#L32
Fix: check for -1 values and use 0 instead - this will prepend `--enable-preview` and `--source N` before any variadic arguments.
```
java.lang.IndexOutOfBoundsException: Index: -1, Size: 6
at java.base/java.util.ArrayList.rangeCheckForAdd(ArrayList.java:839)
at java.base/java.util.ArrayList.add(ArrayList.java:511)
at com.sun.javatest.regtest.exec.CompileAction.run(CompileAction.java:370)
at com.sun.javatest.regtest.exec.RegressionScript.run(RegressionScript.java:267)
at com.sun.javatest.Script.run(Script.java:431)
at com.sun.javatest.DefaultTestRunner.runTest(DefaultTestRunner.java:183)
at com.sun.javatest.DefaultTestRunner$1.run(DefaultTestRunner.java:76)
```
- is cloned by
 - 
                    
CODETOOLS-7903809 Invalid source release N with --enable-preview
-         
     - Resolved
 
 -         
 
- relates to
 - 
                    
CODETOOLS-7903775 Add LIBRARY.properties
-         
     - Resolved
 
 -         
 
- links to
 - 
                    
        
        Commit(master)
        openjdk/jtreg/4c25e050
    
 - 
                    
        
        Review(master)
        openjdk/jtreg/224