Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cannot find symbol(it's there...)

I have the following line in a maven project in netbeans.

Projection projection = two.translate(Vector.reg1).projection(direction);

two is a Shape instance.

public abstract class Shape {
   public double mass;
   public double momentOfIntertia;
   public Vector center;
   public abstract List<Edge> normals(Vector direction);
   public abstract Projection projection(Vector line);
   public abstract Shape transform(Transformation transformation);
   public abstract Shape translate(Vector translation);
   public abstract void render(Graphics graphics);
}

and when I compile I get this error.

[ERROR]BUILD FAILURE
------------------------------------------------------------------------
Compilation failure

org/curious/pounce/Collision.java:[89,39] cannot find symbol
symbol  : method translate(org.curious.pounce.math.Vector)
location: class org.curious.pounce.Shape

I'm not sure what can be wrong with this, if anything was wrong netbeans should be pointing out the error in the IDE, which it isn't.

like image 614
HahaHortness Avatar asked Sep 06 '25 03:09

HahaHortness


1 Answers

Try running a clean on all projects involved (in maven, assuming that's where the message is from).

like image 198
Joshua McKinnon Avatar answered Sep 10 '25 00:09

Joshua McKinnon