Commit ab4e83a
committed
[SPARK-26963][MLLIB] SizeEstimator can't make some JDK fields accessible in Java 9+
## What changes were proposed in this pull request?
Don't use inaccessible fields in SizeEstimator, which comes up in Java 9+
## How was this patch tested?
Manually ran tests with Java 11; it causes these tests that failed before to pass.
This ought to pass on Java 8 as there's effectively no change for Java 8.
Closes #23866 from srowen/SPARK-26963.
Authored-by: Sean Owen <[email protected]>
Signed-off-by: Sean Owen <[email protected]>1 parent ce3a157 commit ab4e83a
File tree
1 file changed
+14
-2
lines changed- core/src/main/scala/org/apache/spark/util
1 file changed
+14
-2
lines changedLines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
338 | 351 | | |
339 | | - | |
340 | 352 | | |
341 | 353 | | |
342 | 354 | | |
| |||
0 commit comments