diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2005-12-06 13:08:28 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2005-12-06 13:08:28 +0000 |
commit | 5318cffed374df7a8f8042427158fd7fa4834c1f (patch) | |
tree | 71c7ed2bb07bb85fbcdf7172d2706ecfe44987b4 /sources | |
parent | 7ba39195a54059bf515fef77646b8a450cb5bb72 (diff) | |
download | scala-5318cffed374df7a8f8042427158fd7fa4834c1f.tar.gz scala-5318cffed374df7a8f8042427158fd7fa4834c1f.tar.bz2 scala-5318cffed374df7a8f8042427158fd7fa4834c1f.zip |
Fixed repetitive interface name when same attri...
Fixed repetitive interface name when same attribute is applied more than
once.
Diffstat (limited to 'sources')
-rw-r--r-- | sources/scala/tools/nsc/backend/jvm/GenJVM.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/scala/tools/nsc/backend/jvm/GenJVM.scala b/sources/scala/tools/nsc/backend/jvm/GenJVM.scala index 580dfeb1ce..76746f5698 100644 --- a/sources/scala/tools/nsc/backend/jvm/GenJVM.scala +++ b/sources/scala/tools/nsc/backend/jvm/GenJVM.scala @@ -117,6 +117,7 @@ abstract class GenJVM extends SubComponent { case _ => (); } } + parents = parents.removeDuplicates; if (parents.length > 1 ) { ifaces = new Array[String](parents.length - 1); @@ -158,6 +159,7 @@ abstract class GenJVM extends SubComponent { f.symbol.attributes foreach { a => a match { case Pair(TransientAtt, _) => attributes = attributes | JAccessFlags.ACC_TRANSIENT; case Pair(VolatileAttr, _) => attributes = attributes | JAccessFlags.ACC_VOLATILE; + case _ => (); }} jclass.addNewField(javaFlags(f.symbol) | attributes, javaName(f.symbol), |