Skip to content

[SI-9503] Deprecate scala.collection.immutable.PagedSeq #4804

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

Merged
merged 1 commit into from
Nov 12, 2015

Conversation

jvican
Copy link
Member

@jvican jvican commented Oct 18, 2015

Review by @janekdb.

@scala-jenkins scala-jenkins added this to the 2.11.8 milestone Oct 18, 2015
@janekdb
Copy link
Member

janekdb commented Oct 18, 2015

Review by @SethTisue .

@janekdb
Copy link
Member

janekdb commented Oct 18, 2015

Hi Jorge. Couple of suggestions,

  • Add a deprecated annotation to the class as well
  • Use 2.11.8 (the version the deprecation will become effective) for the since val

scala.Responder is a good example to follow. In fact the deprecation messages from Responder could be used as-is,

This class will be removed
This object will be removed

The reasons for deprecating can be included in the commit body instead.

Make these changes, amend the commit and force push your branch.

@jvican
Copy link
Member Author

jvican commented Oct 18, 2015

Sorry about that. I did not remove deprecatedInheritance. Shall I?

@SethTisue
Copy link
Member

yeah, if it's @deprecated, then everything about it is deprecated, so there's no more need for an annotation that only deprecates a single aspect of it

@SethTisue SethTisue added the release-notes worth highlighting in next release notes label Oct 18, 2015
@janekdb
Copy link
Member

janekdb commented Oct 18, 2015

The next step is to update test to expect the deprecation messages,

From https://scala-ci.typesafe.com/job/scala-2.11.x-validate-test/1481/console

fail - run/t3647.scala  [output differs]% scalac t3647.scala

@jvican - Because PagedSeq is now deprecated the compiler is emitting warnings which the test needs to accomodate.

This entry from the end of the build log is the starting point,

% diff /home/jenkins/workspace/scala-2.11.x-validate-test/test/files/run/t3647-run.log
/home/jenkins/workspace/scala-2.11.x-validate-test/test/files/run/t3647.check--- empty

t3647.check does not exist because prior to this commit PagedSeq did not generate warnings. Now the diff is non-empty,

+++ t3647-run.log
@@ -1,0 +1,1 @@
+warning: there were three deprecation warnings; re-run with -deprecation for details

Fix this by adding t3647.check with this content,

warning: there were three deprecation warnings; re-run with -deprecation for details

t6292.scala & t6292.check make a good example of how to educate the tests on the new deprecated status.

@jvican
Copy link
Member Author

jvican commented Nov 4, 2015

/rebuild

@SethTisue
Copy link
Member

for the deprecation message, perhaps "This class will be moved to the scala-parser-combinators module"?

@SethTisue SethTisue added on-hold and removed on-hold labels Nov 4, 2015
@janekdb
Copy link
Member

janekdb commented Nov 6, 2015

LGTM

@SethTisue
Copy link
Member

LGTM

adriaanm added a commit that referenced this pull request Nov 12, 2015
[SI-9503] Deprecate scala.collection.immutable.PagedSeq
@adriaanm adriaanm merged commit 3dc2690 into scala:2.11.x Nov 12, 2015
@adriaanm
Copy link
Contributor

Note that we usually try to avoid deprecating in a minor release, since this can break people's builds when they run under -Xfatal-warnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes worth highlighting in next release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants