WhitmanSWDesignSpring2018 / project-5-8-teamuno

project-5-8-teamuno created by GitHub Classroom
0 stars 1 forks source link

Release 7 doesn't compile #71

Closed ProfJanetDavis closed 5 years ago

ProfJanetDavis commented 5 years ago

I checked out the code tagged as project-7-release and tried to compile it. There were 11 compile errors (see below).

Obviously I can't assess how your implementation meets the Project 7 requirements. I don't want to give you a 0 on this assignment, so please advise me ASAP on how to proceed. http://meetme.so/JanetDavis

[10:28am] janet@brick (~/370/Grading/project-5-8-teamuno/src): javac */*.java
tunecomposer/Composition.java:98: error: constructor DeletionCommand in class DeletionCommand cannot be applied to given types;
        TuneComposer.history.addNewCommand(new DeletionCommand(this, forCommand));
                                           ^
  required: HashSet
  found: Composition,HashSet
  reason: actual and formal argument lists differ in length
tunecomposer/Composition.java:117: error: constructor GroupCommand in class GroupCommand cannot be applied to given types;
        TuneComposer.history.addNewCommand(new GroupCommand(this, forCommand, true));
                                           ^
  required: HashSet,boolean
  found: Composition,HashSet,boolean
  reason: actual and formal argument lists differ in length
tunecomposer/Composition.java:139: error: constructor GroupCommand in class GroupCommand cannot be applied to given types;
        TuneComposer.history.addNewCommand(new GroupCommand(this, forCommand, false));
                                           ^
  required: HashSet,boolean
  found: Composition,HashSet>,boolean
  reason: actual and formal argument lists differ in length
tunecomposer/NoteBar.java:109: error: constructor SelectionCommand in class SelectionCommand cannot be applied to given types;
            TuneComposer.history.addNewCommand(new SelectionCommand(composition));
                                               ^
  required: no arguments
  found: Composition
  reason: actual and formal argument lists differ in length
tunecomposer/NoteBar.java:164: error: incompatible types: Composition cannot be converted to Set
            TuneComposer.history.addNewCommand(new ResizeCommand(composition, me.getX()-dragStartX));
                                                                 ^
tunecomposer/NoteBar.java:169: error: incompatible types: Composition cannot be converted to Set
            TuneComposer.history.addNewCommand(new MoveCommand(composition, me.getX()-dragStartX, me.getY()-dragStartY));
                                                               ^
tunecomposer/TuneComposer.java:380: error: incompatible types: PasteCommand cannot be converted to Command
            history.addNewCommand(new PasteCommand(composition, loadedRects));
                                  ^
tunecomposer/TuneComposer.java:398: error: constructor SelectionCommand in class SelectionCommand cannot be applied to given types;
        history.addNewCommand(new SelectionCommand(composition));
                              ^
  required: no arguments
  found: Composition
  reason: actual and formal argument lists differ in length
tunecomposer/TuneComposer.java:409: error: constructor SelectionCommand in class SelectionCommand cannot be applied to given types;
        history.addNewCommand(new SelectionCommand(composition));
                              ^
  required: no arguments
  found: Composition
  reason: actual and formal argument lists differ in length
tunecomposer/TuneComposer.java:650: error: constructor SelectionCommand in class SelectionCommand cannot be applied to given types;
            history.addNewCommand(new SelectionCommand(composition));
                                  ^
  required: no arguments
  found: Composition
  reason: actual and formal argument lists differ in length
tunecomposer/TuneComposer.java:688: error: constructor CreationCommand in class CreationCommand cannot be applied to given types;
            history.addNewCommand(new CreationCommand(composition, forCommand));
                                  ^
  required: NoteBar
  found: Composition,NoteBar
  reason: actual and formal argument lists differ in length
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
11 errors
[10:28am] janet@brick (~/370/Grading/project-5-8-teamuno/src): 
ProfJanetDavis commented 5 years ago

I deleted my old working copy, cloned from the repository, checked out project-7-release, and it built. I'm sorry to have alarmed you. Thanks for your attention to this, @ARevanchist