Ex08 - "object internedSymbols" in "Symbol.scala"

L4_
BASIC-Programmierer
BASIC-Programmierer
Beiträge: 104
Registriert: 24. Apr 2012 15:44

Ex08 - "object internedSymbols" in "Symbol.scala"

Beitrag von L4_ »

Hello,

With exactly one file I am not sure how to handle it.
In the file "Symbol.scala" there is the following object:

object internedSymbols extends jcl.WeakHashMap[String, ref.WeakReference[Symbol]]

Refered to the task, we do not need to view files that lead to "scala.collection.jcl".
But anyway, If I traverse the hierarchy of that one, it leads to "Iterable" even though its way got through the package "scala.collection.jcl".

Thus, do I consider the object "internedSymbols" or not?

Kind regards

imaier
Mausschubser
Mausschubser
Beiträge: 61
Registriert: 21. Okt 2013 21:27

Re: Ex08 - "object internedSymbols" in "Symbol.scala"

Beitrag von imaier »

Okay, that gets too complicated. To make it more explicit, do NOT look at classes/objects/traits that inherit from things in scala.collection.jcl. Moreover: only look at PUBLIC classes/objects/traits. Both of these requirements will exclude internedSymbols, which is package private (private[scala]). I hope this excludes all other less important classes/objects/traits, but ask again if in doubt.

Cheers,
Ingo

Antworten

Zurück zu „Archiv“