Registry / utility / scala-reflect

scala-reflect

JSON →
library2.13.18javamavenunverified

Reflection Library for the Scala Programming Language providing runtime type information and metaprogramming capabilities.

<dependency> <groupId>org.scala-lang</groupId> <artifactId>scala-reflect</artifactId> <version>2.13.18</version> </dependency>
INSTALL
IMPORT
SIG · SCALA-REFLECT
S
scala-reflect
utilityjavav2.13.18
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

universe
scala.reflect.runtime.universe

Using Scala reflection to get the type of List[Int].

import scala.reflect.runtime.universe._ object Example { def main(args: Array[String]): Unit = { val tpe = typeOf[List[Int]] println(tpe) } }
Debug
Known issues
breakingScala reflection is not binary compatible across minor Scala versions (e.g., 2.12 vs 2.13).
fix
Ensure the scala-reflect version matches your Scala compiler version exactly.
affects: >=2.10.0
Upgrade
Version history
2.13.18latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources
scala-reflect — mvn dependency:get scala-reflect · libregistry