Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4337720
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T10:58:59+00:00 2026-05-21T10:58:59+00:00

Scala’s Manifest s are a way to get around some type erasure problems due

  • 0

Scala’s Manifests are a way to get around some type erasure problems due to the JVM’s lack of reified generics.

They are discussed in several other questions; here are a few:

  • What is a Manifest in Scala and when do you need it?
  • How does Scala's (2.8) Manifest work?
  • How do I get around type erasure on Scala? Or, why can't I get the type parameter of my collections?
  • How can I use Scala's Manifest class to instantiate the erased class at runtime?
  • Manifest vs ClassManifest. What does this Scala error mean?

One of the comments mentions that “This feature is experimental, and there are cases in which it doesn’t work. Still, it can go a long way.” (Daniel Sobral)

What are the cases where the Manifest approach breaks down and why?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T10:59:00+00:00Added an answer on May 21, 2026 at 10:59 am

    The most important case should be open Tickets in the Scala teams bug tracking system. I found the following:

    • manifests + intersection types violate val-binding abstraction
    • Compiler cannot determine implicit Manifest for type constructor
    • ClassManifest.typeArguments returns empty list on array manifests
    • manifests need to account for variance

    I believe the general idea is, that Manifests will be part of the planned/upcomming Scala reflection library and apart from using them in the context of Arrays is “on your own risk” ( see ).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Scala (at least on the JVM ) uses type erasure for Java compatibility. This
In Scala, is it possible to get the string representation of a type at
(Scala 2.7.7:) I don't get used to 2d-Arrays. Arrays are mutable, but how do
Scala doesn't have type-safe enum s like Java has. Given a set of related
In Scala, there is a special type of access modifiers: protected[enclosing_scope]. But as soon
Scala's Ordering trait has a method reverse which seems to be the official way
Scala has a number of traits that you can use as type classes, for
Scala Where can differences between a class and a type be observed in Scala
The Scala compiler compiles direct to Java byte code (or .NET CIL). Some of
scala> class A { type T <: String; def f(a: T) = println(foo)} defined

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.