Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-1818

Battleships plugin fails to build

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.7.0
    • Fix Version/s: None
    • Component/s: Plugins

      Description

      Battleships plugin has been commented out in the build.xml for a while (actually i don't remember it even working). It would be nice to fix it if possible. Or maybe it can be removed, if it is completely obsolete and not worth keeping in Spark's source.

      Eclipse throws this when trying to build:
      [javac] Compiling 14 source files to N:\Git\Spark\target\plugins-dev\battleship\classes
      [javac] N:\Git\Spark\src\plugins\battleships\src\java\battleship\gui\GUI.java:34: error: cannot find symbol
      [javac] import battleship.listener.ShipPlacementListener;
      [javac] ^
      [javac] symbol: class ShipPlacementListener
      [javac] location: package battleship.listener
      [javac] N:\Git\Spark\src\plugins\battleships\src\java\battleship\gui\GUI.java:36: error: package battleship.observer does not exist
      [javac] import battleship.observer.Observeable;
      [javac] ^
      [javac] N:\Git\Spark\src\plugins\battleships\src\java\battleship\gui\GUI.java:37: error: package battleship.observer does not exist
      [javac] import battleship.observer.Observer;
      [javac] ^
      [javac] N:\Git\Spark\src\plugins\battleships\src\java\battleship\gui\GUI.java:41: error: cannot find symbol
      [javac] public class GUI extends JPanel implements Observer{
      [javac] ^
      [javac] symbol: class Observer
      [javac] N:\Git\Spark\src\plugins\battleships\src\java\battleship\gui\GameboardGUI.java:35: error: cannot find symbol
      [javac] import battleship.listener.ShipPlacementListener;
      [javac] ^
      [javac] symbol: class ShipPlacementListener
      [javac] location: package battleship.listener
      [javac] N:\Git\Spark\src\plugins\battleships\src\java\battleship\gui\GUI.java:53: error: cannot find symbol
      [javac] private ShipPlacementListener _splistener;
      [javac] ^
      [javac] symbol: class ShipPlacementListener
      [javac] location: class GUI
      [javac] N:\Git\Spark\src\plugins\battleships\src\java\battleship\gui\GUI.java:130: error: cannot find symbol
      [javac] public void update(Observeable obs) {
      [javac] ^
      [javac] symbol: class Observeable
      [javac] location: class GUI
      [javac] N:\Git\Spark\src\plugins\battleships\src\java\battleship\gui\GameboardGUI.java:90: error: cannot find symbol
      [javac] public void initiateShipPlacement(ShipPlacementListener spl)
      [javac] ^
      [javac] symbol: class ShipPlacementListener
      [javac] location: class GameboardGUI
      [javac] N:\Git\Spark\src\plugins\battleships\src\java\battleship\logic\GameBoard.java:71: error: cannot find symbol
      [javac] public List<CoordinatePair> placeShip(int x, int y, Ship s, Direction dir) {
      [javac] ^
      [javac] symbol: class CoordinatePair
      [javac] location: class GameBoard
      [javac] N:\Git\Spark\src\plugins\battleships\src\java\battleship\gui\GUI.java:106: error: cannot find symbol
      [javac] _splistener = new ShipPlacementListener(_display, _gameboard, _myfield);
      [javac] ^
      [javac] symbol: class ShipPlacementListener
      [javac] location: class GUI
      [javac] N:\Git\Spark\src\plugins\battleships\src\java\battleship\logic\GameBoard.java:76: error: cannot find symbol
      [javac] List<CoordinatePair> liste = new ArrayList<CoordinatePair>();
      [javac] ^
      [javac] symbol: class CoordinatePair
      [javac] location: class GameBoard
      [javac] N:\Git\Spark\src\plugins\battleships\src\java\battleship\logic\GameBoard.java:76: error: cannot find symbol
      [javac] List<CoordinatePair> liste = new ArrayList<CoordinatePair>();
      [javac] ^
      [javac] symbol: class CoordinatePair
      [javac] location: class GameBoard
      [javac] N:\Git\Spark\src\plugins\battleships\src\java\battleship\logic\GameBoard.java:91: error: cannot find symbol
      [javac] liste.add( new CoordinatePair(i, y));
      [javac] ^
      [javac] symbol: class CoordinatePair
      [javac] location: class GameBoard
      [javac] N:\Git\Spark\src\plugins\battleships\src\java\battleship\logic\GameBoard.java:106: error: cannot find symbol
      [javac] liste.add(new CoordinatePair(x, i));
      [javac] ^
      [javac] symbol: class CoordinatePair
      [javac] location: class GameBoard
      [javac] Note: Some input files use or override a deprecated API.
      [javac] Note: Recompile with -Xlint:deprecation for details.
      [javac] 14 errors

        Attachments

          Activity

            People

            • Assignee:
              wolf.posdorfer Wolf P.
              Reporter:
              wroot wroot
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: