You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix#3675: don't unnecessarily wrap arrays when eliminating java varargs
When eliminating varargs in a java method call, we need to convert Seqs
into Arrays. However, if the object we're passing is already a wrapped
array, we just need to unwrap it.
Testing
-------
Eliminating varargs in
```
import java.nio.file._
class Test {
def test(xs: Array[String]) = {
val p4 = Paths.get("Hello", xs: _*)
}
}
```
now gives
`val p4: java.nio.file.Path = java.nio.file.Paths.get("Hello", xs)`
0 commit comments