Uploaded image for project: 'Scala Programming Language'
  1. Scala Programming Language
  2. SI-8549

scalac 2.11 regression. Scalac is not honouring the SerialVersionUID annotation

    Details

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                retronym Jason Zaugg
                Reporter:
                oxbow_lakes Chris Marshall
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: