|
-
May 24th, 2011, 02:37 PM
#1
Cannot find sysmbol
This is probably one of the most basic issues, but I am very new at Java and I have looked in many sites for a solution but can't find it so decided to post on this site.
I have file 1: Attending.java
BEGIN OF FILE CONTENT
package com.gwt.client;
/**
* Indicates whether or not an Attendee will be attending an *
*/
public enum Attending {
/**
* Indicates an Attendee will be attending.
*/
Yes,
/**
* Indicates an Attendee will not be attending.
*/
No,
/**
* Indicates an Attendee has not yet made up their mind
* whether or not they will be attending.
*/
Maybe
}
END OF FILE CONTENT
This files compiles with no errors and creates Attending.class
File 2: Attendee.java
BEGIN OF FILE CONTENT
package com.gwt.client;
import java.io.Serializable;
/** * A simple JavaBean class representing an entity associated to an appointment,
* most likely a person, but might as well be a resource (like a conference room or a
* projector).
*/
@SuppressWarnings("serial")
public class Attendee implements Serializable {
/**
* The <code>Attendee</code> name (if a person) or description
* (when a resource).
*/
private String name;
/**
* This <code>Attendee</code> email address.
*/
private String email;
/**
* The status of attendance of this attendee to an <code>Appointment</code>.
*/
private Attending attending = Attending.Maybe;
/**
* A URL to an image to depict this <code>Attendee</code>.
*/
private String imageUrl;
/**
* Returns the name (if a person) or description (when a resource)
* of this <code>Attendee</code>.
*
* @return The currently configured name of this attendee
*/
public String getName() {
return name;
}
/**
* Sets the name (if a person) or description (when a resource)
* of this <code>Attendee</code>.
*
* @param name The name of this attendee
*/
public void setName(String name) {
this.name = name;
}
/**
* Returns this <code>Attendee</code> email address.
*
* @return The email address
*/
public String getEmail() {
return email;
}
/**
* Sets this <code>Attendee</code> email address.
* @param email The email address
*/
public void setEmail(String email) {
this.email = email;
}
/**
* Returns the attendance status of <code>this</code> attendant
* to the <code>Appointment</code> referencing it.
* @return The attendance status of this <code>Attendee</code>
*/
public Attending getAttending() {
return attending;
}
/**
* Sets the attendance status of <code>this</code> attendant
* to the <code>Appointment</code> referencing it.
*
* @param attending The attendance status
*/
public void setAttending(Attending attending) {
this.attending = attending;
}
/**
* Returns the URL to an image to (optionally) depict this <code>Attendee</code>
* in the views.
* @return A URL (relative or absolute) meaningful within the
* deployed application context
*/
public String getImageUrl() {
return imageUrl;
}
/**
* Sets the URL to an image to (optionally) depict this <code>Attendee</code>
* in the views.
* @param imageUrl A URL (relative or absolute) meaningful within the
*/
public void setImageUrl(String imageUrl) {
this.imageUrl = imageUrl;
}
}
END OF FILE CONTENT
This one is the one that give me java cannot find symbol Attending. The exact error is
Ateendee.java:27 cannot find symbol
symbol : class Attending
location : class com.gwt.client.Attendee
private Attending attending = Attending.Maybe;
Thanks for any help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|