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

Anonymous Functions don't have a SerialVersionUID anymore since 2.11.1 #8960

Closed
scabug opened this issue Nov 5, 2014 · 2 comments
Closed
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Nov 5, 2014

https://gist.github.com/JoshRosen/3d8d5d5cc35bc245185c

lucmac:sandbox luc$ scala-hash v2.11.0
Welcome to Scala version 2.11.0-20140415-163722-cac6383e66 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_65).
Type in expressions to have them evaluated.
Type :help for more information.

scala> class C {
     |   def f = () => ()
     | }
defined class C

scala> :javap -fun C#f
[...]
const #53 = Asciz	InnerClasses;
const #54 = Asciz	Scala;

{
public static final long serialVersionUID;
  Constant value: long 0l
public final void apply();
  Code:
   Stack=1, Locals=1, Args_size=1
[...]

vs.

lucmac:sandbox luc$ scala-hash v2.11.1
Welcome to Scala version 2.11.1-20140519-130118-1e1defd99c (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_65).
Type in expressions to have them evaluated.
Type :help for more information.

scala> class C {
     |   def f = () => ()
     | }
defined class C

scala> :javap -fun C#f
[...]
const #48 = Asciz	InnerClasses;
const #49 = Asciz	Scala;

{
public final void apply();
  Code:
   Stack=1, Locals=1, Args_size=1
[...]
@scabug
Copy link
Author

scabug commented Nov 5, 2014

Imported From: https://issues.scala-lang.org/browse/SI-8960?orig=1
Reporter: @lrytz
Affected Versions: 2.11.1

@scabug
Copy link
Author

scabug commented Nov 5, 2014

@lrytz said:
scala/scala#4093

@scabug scabug closed this as completed Nov 6, 2014
@scabug scabug added this to the 2.11.5 milestone Apr 7, 2017
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

No branches or pull requests

2 participants