-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Many deprecated methods should be removed in 0.5.0 #2765
Comments
Since we are essentially using Early Semantic versioning, we should be able to remove or change behaviors between 0.4.x and 0.5.0. I think these can be removed for 0.5.0 since everyone will need to rebuild. Looking for other deprecation is a good idea too. |
Looking for low hanging fruit whilst I have some intensive tests running. Not comprehensive, just reporting as I am finding.
nativelib has some GC deprecations. A brave soul could examine those. Javalib has a few deprecations, but then Java likes deprecations. Posixlib appears to have one "0.4.5" deprecation, according |
2022-11-12: This deprecation seems to be removed. Sometimes the simple passage of time
|
Now fixed, see duplicate below. I must really not like this one if I keep |
I think the most important thing if we remove deprecated code is that we somehow make sure we capture them with workarounds for the release notes. Maybe we should add release notes or add to them as we go. |
I did a quick run through a number of other directories, skipping scalalib. Not pristine but |
Yes, a section describing removed routines would be essential. The deprecation messages themselves I, for one, do not want to be creating new workarounds for things which have been deprecated for many versions. Much as I would like to pick these of one by one, since this sieving appears to have come up |
You can copy Edit: It is not really fair to make only one person do this for a major release so this will help and start a new good process. |
2022-11-19 WIP PR #2783 contained a fix for this but never merged. So this deprecation still exists. Another one for the hit parade:
I began the procees of removing long standing deprecations in I followed the Eric's sage suggestion to create a rough Fixing these is sort of like eating popcorn. |
…c signed argument methods.
…ScalaNativePlugin
I am still pecking away at removing deprecated items. I think I have 5+ files to go. Someday this Issue can Rest In Peace. |
There are probably a large (?) number of places where methods have been deprecated in 0.4.x.
2022-11-19 The alloc/stackalloc deprecations are removed in PR #3003
The 0.5.0 release offers the opportunity to remove those methods. This reduces the amount
of dead code in SN and its attendant costs.
In particular, whilst trying to track down solutions to my favorite 0.5.0 annoyances, I came
across code in the aforementioned
UnsafePackageCompat.scala
(beware there are twoof them, both probably need the same fix).
and
Note well that the comment about memory not being cleared is patently wrong
and has been for a while.
If given the go ahead, I can make a PR for this case in two files.
Please advise.
What is really needed is a sweep through all the code looking for
@deprecated
, hopefullywith a SN version when it was deprecated. I can understand that code deprecated in 0.4.4, 0.4.5, 0.4.next,
might not be a candidate for removal. Certainly it is worth cleaning out items deprecated in earlier versions.
Yes, Java still has entry points deprecated in Java 1.1 & 1.2 and wears them as a badge of honor.
The text was updated successfully, but these errors were encountered: