diff options
author | Paul Phillips <paulp@improving.org> | 2011-11-04 21:47:55 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-11-04 21:47:55 +0000 |
commit | 4474d9ba205d2276de8567151b5ed3f2c6f75b5e (patch) | |
tree | 7b559997abe61f39d899b85ea1e0215af0eac775 /src | |
parent | 8901935da87b46c049d3aca4b48d2729e5ccb74a (diff) | |
download | scala-4474d9ba205d2276de8567151b5ed3f2c6f75b5e.tar.gz scala-4474d9ba205d2276de8567151b5ed3f2c6f75b5e.tar.bz2 scala-4474d9ba205d2276de8567151b5ed3f2c6f75b5e.zip |
Revert "Fix for Enumeration."
Oops, didn't mean to commit that one. Opens SI-5147. No review.
Diffstat (limited to 'src')
-rw-r--r-- | src/library/scala/Enumeration.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/Enumeration.scala b/src/library/scala/Enumeration.scala index 9d21822309..65a5cfb55a 100644 --- a/src/library/scala/Enumeration.scala +++ b/src/library/scala/Enumeration.scala @@ -161,7 +161,7 @@ abstract class Enumeration(initial: Int, names: String*) extends Serializable { protected final def Value(i: Int, name: String): Value = new Val(i, name) private def populateNameMap() { - val fields = getClass.getFields + val fields = getClass.getDeclaredFields def isValDef(m: JMethod) = fields exists (fd => fd.getName == m.getName && fd.getType == m.getReturnType) // The list of possible Value methods: 0-args which return a conforming type |