diff options
author | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-07-07 12:47:56 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-07-07 12:47:56 -0700 |
commit | 49a66e25c860d4b05b16f313af1b932e1cac9d4a (patch) | |
tree | 96194a1c751306012738399b5570b527901f7e8c | |
parent | f2dbe673756302d5f5824fd8d0e6e3b3eb45a57b (diff) | |
parent | 5db7d7887ac0c86cb0160bddc5e1294fddb25bf6 (diff) | |
download | scala-49a66e25c860d4b05b16f313af1b932e1cac9d4a.tar.gz scala-49a66e25c860d4b05b16f313af1b932e1cac9d4a.tar.bz2 scala-49a66e25c860d4b05b16f313af1b932e1cac9d4a.zip |
Merge pull request #838 from adriaanm/ticket-2442
SI-2442 sealedness for java enums non-experimental
-rw-r--r-- | src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala | 4 | ||||
-rw-r--r-- | test/files/neg/t2442.flags | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala b/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala index 046b177444..65b0ff1e6d 100644 --- a/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala +++ b/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala @@ -613,8 +613,8 @@ abstract class ClassfileParser { parseAttributes(sym, info) getScope(jflags).enter(sym) - // sealed java enums (experimental) - if (isEnum && opt.experimental) { + // sealed java enums + if (isEnum) { val enumClass = sym.owner.linkedClassOfClass if (!enumClass.isSealed) enumClass setFlag (SEALED | ABSTRACT) diff --git a/test/files/neg/t2442.flags b/test/files/neg/t2442.flags index 32cf036c3d..e8fb65d50c 100644 --- a/test/files/neg/t2442.flags +++ b/test/files/neg/t2442.flags @@ -1 +1 @@ --Xexperimental -Xfatal-warnings
\ No newline at end of file +-Xfatal-warnings
\ No newline at end of file |