Skip to content

Commit

Permalink
Revert "Fix for Enumeration."
Browse files Browse the repository at this point in the history
Oops, didn't mean to commit that one. Opens SI-5147. No review.
  • Loading branch information
paulp committed Nov 4, 2011
1 parent 8901935 commit 4474d9b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion src/library/scala/Enumeration.scala
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion test/files/run/t5147.check

This file was deleted.

9 changes: 0 additions & 9 deletions test/files/run/t5147.scala

This file was deleted.

0 comments on commit 4474d9b

Please sign in to comment.