Skip to content

SI-9534 Use BoxedUnit in all cases for creating Array[Unit]#4921

Merged
retronym merged 1 commit intoscala:2.11.xfrom
szeiger:issue/9534
Feb 1, 2016
Merged

SI-9534 Use BoxedUnit in all cases for creating Array[Unit]#4921
retronym merged 1 commit intoscala:2.11.xfrom
szeiger:issue/9534

Conversation

@szeiger
Copy link
Contributor

@szeiger szeiger commented Jan 27, 2016

Calling wrap or one of the higher-dimension Array factory methods on
the Manifest for Unit led to an exception because it tried to use
void as a primitive type. Unlike all other primitive Scala types,
Unit needs to be boxed. The basic newArray method was not affected
by this bug because it was already special-cased. The fix is to also
special-case arrayClass.

Calling `wrap` or one of the higher-dimension Array factory methods on
the `Manifest` for `Unit` led to an exception because it tried to use
`void` as a primitive type. Unlike all other primitive Scala types,
`Unit` needs to be boxed. The basic `newArray` method was not affected
by this bug because it was already special-cased. The fix is to also
special-case `arrayClass`.
@scala-jenkins scala-jenkins added this to the 2.11.8 milestone Jan 27, 2016
@denisrosset
Copy link
Contributor

Thanks Stefan!

@retronym
Copy link
Member

retronym commented Feb 1, 2016

LGTM

retronym added a commit that referenced this pull request Feb 1, 2016
SI-9534 Use BoxedUnit in all cases for creating Array[Unit]
@retronym retronym merged commit 7a9e7c5 into scala:2.11.x Feb 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants