Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restaurant.java error in skeleton code #41

Closed
mrathjen opened this issue May 1, 2013 · 4 comments
Closed

Restaurant.java error in skeleton code #41

mrathjen opened this issue May 1, 2013 · 4 comments
Assignees
Labels

Comments

@mrathjen
Copy link
Collaborator

mrathjen commented May 1, 2013

There are errors when building with Restaurant.java b/c of naming mismatches and return value mismatch

@ghost ghost assigned zachr81 May 1, 2013
@zachr81
Copy link
Collaborator

zachr81 commented May 1, 2013

Latest push should fix that.

EDIT: Didn't mean to close the thread, reopened

@zachr81 zachr81 closed this as completed May 1, 2013
@zachr81 zachr81 reopened this May 1, 2013
@mrathjen
Copy link
Collaborator Author

mrathjen commented May 1, 2013

These are the errors I still see when building the Lib

The method add(String, Menu) is undefined for the type Map<String,Menu> /DineOnLibrary/src/uw/cse/dineon/library Restaurant.java line 126

The method copy(List<? super T>, List<? extends T>) in the type Collections is not applicable for the arguments (List, List) /DineOnLibrary/src/uw/cse/dineon/library Restaurant.java line 59

Type mismatch: cannot convert from List to List /DineOnLibrary/src/uw/cse/dineon/library Restaurant.java line 60

The method clone() is undefined for the type Map<String,Menu> /DineOnLibrary/src/uw/cse/dineon/library Restaurant.java line 43

@mrathjen
Copy link
Collaborator Author

mrathjen commented May 1, 2013

I meant to put this in this thread:

Ok, I'm not going to keep doing this, you should be able to see the errors on your own machine so don't do a pull request unless it builds on your machine. The master branch should only have code that builds properly especially as we move toward the phase turn in. This is how multiple bugs are introduce when multiple ppl are working on the same project.

The method clone() is undefined for the type Map /DineOnLibrary/src/uw/cse/dineon/library Restaurant.java line 43 Java Problem

@zachr81
Copy link
Collaborator

zachr81 commented May 1, 2013

Yeah, I recognize that's a problem. I was planning to be at the customer meeting because I wanted to go over this with you. I've tried several different ways of importing the project into Eclipse and I'm getting build errors no matter how I set it up (and I can create both Java and Android projects from scratch and have them work properly) which includes not recognizing java.util so it's not properly pulling methods. I did the initial version by writing in a separate Java project then copying the files over, changing the package, but forgot to check the edits in that project when I added the Map

@mrathjen mrathjen closed this as completed May 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants