Commit 4d08a9f
Fix forked JVM test for Java 8 compatibility
--add-opens is only available on JDK 9+. Parse java.specification.version
(returns '1.8' on JDK 8, '11'/'17'/'21' on newer) and only add the
flag when major version >= 9. Works on JDK 8+ (where '1.8'.split('.')[0]
= '1' which is < 9).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 06a4f83 commit 4d08a9f
File tree
1 file changed
+12
-2
lines changed- sdk/cosmos/azure-cosmos-tests/src/test/java/com/azure/cosmos/implementation
1 file changed
+12
-2
lines changedLines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
133 | 143 | | |
134 | 144 | | |
135 | 145 | | |
| |||
0 commit comments