Java cannot find symbol enum

Posted by JDelage on Stack Overflow See other posts from Stack Overflow or by JDelage
Published on 2010-06-09T21:10:22Z Indexed on 2010/06/09 21:12 UTC
Read the original article Hit count: 184

Filed under:
|
|
|

Hi,

I'm modeling a chess game on Java, and I'm having some problem. Here's what the code looks like (the relevant parts):

Enum class Couleur.java:

public enum Couleur {BLANC, NOIR}

Piece.java:

public abstract class Piece {
(...)
  public Piece(Couleur couleurParam){
    this.couleurPiece = couleurParam;
  }
(...)
}

And finally Tour.java:

public class Tour extends Piece {
(...)
  public Tour(Couleur couleurParam){
    super(couleurParam);
  }
(...)
}

All the .java files are in the same folder. Yet at compile I get a "cannot find symbol symbol : variable NOIR location: class Plateau"

(Plateau is the class that instantiates Tour.)

Can anyone help me figure out what's wrong here?

Many thanks,

JDelage

© Stack Overflow or respective owner

Related posts about java

Related posts about beginner