Skip to content

scala.collection.mutable.SynchronisedXXX classes deprecated, implicits missing for Java equivalents #8536

Open
@scabug

Description

@scabug

From a conversation on scala-user:


[Alan Burlison]
One other surprise that I came across that's only hinted at in the 2.11 release notes is the deprecation of the SynchronizedXXX collection traits, such as SynchronizedMap. In that particular case the deprecation warning points you at java.util.concurrent.ConcurrentHashMap. ... there only seems to be implicit conversions for the Java ConcurrentMap and not the other suggested replacements for the deprecated SynchronizedXXX traits, is that an oversight or have I missed something?

[Adriaan Moors]
We should add the ones that are suggested but missing. Could you file a bug and assign to Rex?

I believe the list of the Java classes that are missing Scala implicits is:

Deprecated Scala class -> Recommended Java replacement
SynchronizedBuffer -> ConcurrentLinkedQueue
SynchronizedPriorityQueue -> ConcurrentSkipListSet
SynchronizedQueue -> ConcurrentLinkedQueue
SynchronizedSet -> ConcurrentHashMap
SynchronizedStack -> LinkedBlockingDequeue

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions