Skip to content

scalac 2.11 regression. Scalac is not honouring the SerialVersionUID annotation #8549

Closed
@scabug

Description

@scabug

Compiling this code:

package test

@SerialVersionUID(1)
class Ser extends Serializable

using 2.10 and then running the following:

object Main extends App {
  println( classOf[test.Ser].getDeclaredField("serialVersionUID") )
}

Will print public static final long test.Ser.serialVersionUID

However, compiling the same with 2.11 gives a NoSuchFIeldException

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions