Skip to content
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

ClassTag[Unit].wrap throws #9534

Closed
scabug opened this issue Oct 25, 2015 · 2 comments
Closed

ClassTag[Unit].wrap throws #9534

scabug opened this issue Oct 25, 2015 · 2 comments
Assignees
Labels
Milestone

Comments

@scabug
Copy link

scabug commented Oct 25, 2015

The following throws and can be tested in the Scala REPL:

scala> implicitly[scala.reflect.ClassTag[Unit]].wrap
java.lang.IllegalArgumentException
  at java.lang.reflect.Array.$$YJP$$newArray(Native Method)
  at java.lang.reflect.Array.newArray(Array.java)
  at java.lang.reflect.Array.newInstance(Array.java:75)
  at scala.reflect.ClassManifestDeprecatedApis$class.arrayClass(ClassManifestDeprecatedApis.scala:91)
  at scala.reflect.AnyValManifest.arrayClass(Manifest.scala:68)
  at scala.reflect.ClassTag$class.wrap(ClassTag.scala:47)
  at scala.reflect.AnyValManifest.wrap(Manifest.scala:68)
  ... 43 elided

scala> 
@scabug
Copy link
Author

scabug commented Oct 25, 2015

Imported From: https://issues.scala-lang.org/browse/SI-9534?orig=1
Reporter: Denis Rosset (denisrosset)
Affected Versions: 2.10.5, 2.11.0, 2.11.6, 2.11.7

@scabug
Copy link
Author

scabug commented Jan 27, 2016

@szeiger said:
PR: scala/scala#4921

@scabug scabug closed this as completed Feb 1, 2016
@scabug scabug added the has PR label Apr 7, 2017
@scabug scabug added this to the 2.11.8 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants