Skip to content

Fix scalap parsing/printing of enum and class constant types#8066

Merged
lrytz merged 1 commit intoscala:2.12.xfrom
retronym:topic/scalap-constant
May 17, 2019
Merged

Fix scalap parsing/printing of enum and class constant types#8066
lrytz merged 1 commit intoscala:2.12.xfrom
retronym:topic/scalap-constant

Conversation

@retronym
Copy link
Member

@scala-jenkins scala-jenkins added this to the 2.12.9 milestone May 17, 2019
final val ClassConstant: java.lang.Class[scala.Predef.String] = { /* compiled code */ }
final val ClassConstant2: java.lang.Class[scala.Some[_]] = { /* compiled code */ }
final val EnumConstant: java.util.concurrent.TimeUnit = { /* compiled code */ }
final val StringConstant: java.lang.Class[scala.Predef.String] = { /* compiled code */ }
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strictly speaking, scalap should render these methods as final val IntConstant = 1, rather than with the widened type. But I'm only here on a drive-by fix and just want to avoid the crash that stops jardiff from comparing the signatures in scala/concurrent/duration/package.class.

@retronym retronym requested a review from lrytz May 17, 2019 03:03
34 -^ null,
35 -~ typeRef)
35 -~ typeRef,
36 -~ symbolRef
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review by @lrytz, this is 2009 calling :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

more annotations cleanup.

Great commit message for a +159 -194 commit 😂

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.

3 participants