Commit 3e4e9fc
fix: probe CollectionConverters with a call to detect Scala version correctly
On Scala 2.12, jvm.scala.jdk.javaapi.CollectionConverters resolves to a
JavaPackage placeholder rather than raising an exception, so the previous
try/except always selected the jdk path and broke Spark 3.x.
Verify usability by actually calling asScala() as a one-time probe.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 7275937 commit 3e4e9fc
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
85 | 90 | | |
86 | 91 | | |
87 | 92 | | |
| |||
0 commit comments