Details

      Description

      using this code on 2.8 latest gives this

      class Foo{@volatile final var x=10};new Foo
      
      Welcome to Scala version 2.8.0.r18830-b20090930020951 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_16).
      Type in expressions to have them evaluated.
      Type :help for more information.
      
      scala> class Foo{@volatile final var x=10};new Foo
      java.lang.ClassFormatError: Illegal field modifiers in class Foo: 0x52
      	at java.lang.ClassLoader.defineClass1(Native Method)
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:466)
      	at scala.tools.nsc.interpreter.AbstractFileClassLoader.findClass(AbstractFileClassLoader.scala:31)
      	at java.lang.ClassLoader.loadClass(ClassL...
      scala> 
      
      

      I noticed SI-2095
      not sure if they are related.

        Activity

        Hide
        Iulian Dragos added a comment -

        (In r19899) Closed SI-2418

        Show
        Iulian Dragos added a comment - (In r19899) Closed SI-2418
        Show
        Paul Phillips added a comment - https://github.com/scala/scala/pull/1001
        Hide
        Adriaan Moors added a comment -

        reopening for potential backport to 2.10.1-RC1

        Show
        Adriaan Moors added a comment - reopening for potential backport to 2.10.1-RC1
        Hide
        James Iry added a comment -

        I'll take the backport just to clear it off our plate.

        Show
        James Iry added a comment - I'll take the backport just to clear it off our plate.
        Hide
        James Iry added a comment -
        Show
        James Iry added a comment - backport https://github.com/scala/scala/pull/2037

          People

          • Assignee:
            James Iry
            Reporter:
            Ben Jackman
            TracCC:
            Ben Jackman
          • Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development