Java Object interopt changed in Scala 2.13.0
- Dominant language
- Scala
- Stars
- 135
- Forks
- 10
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 11
Description
This is more just an advisory issue that could be updated and released if older versions like Scala 2.11 and 2.12 get dropped.
- [X] Scala 2.11 dropped
- [ ] Scala 2.12 dropped
Change in Scala 2.13: https://github.com/scala/scala/pull/7966
Code affected: https://github.com/ekrich/sconfig/blob/master/sconfig/shared/src/main/scala/org/ekrich/config/impl/SimpleConfigList.scala#L270
Potential change:
From: `override def toArray[T](a: Array[T with Object]): Array[T with Object] =???`
To: `override def toArray[T <: Object](a: Array[T]): Array[T] = ???`
Edit: or `AnyRef` for `Object`.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at sconfig/shared/src/main/scala/org/ekrich/config/impl/SimpleConfigList.scala around line 270 and compare the current toArray signature with the Scala 2.13 change linked in the issue. Check whether Scala 2.12 support has been dropped before deciding which signature is appropriate; done means updating the affected declaration consistently with the supported Scala versions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, scala
- Domain
- backend
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100