修改代码后jBuilder总是无端报错! ( 积分: 100 )

  • 主题发起人 EdwardZhou
  • 开始时间
E

EdwardZhou

Unregistered / Unconfirmed
GUEST, unregistred user!
比如下面的代码,总是提示说
"CartesianCoordinateSystem.java": cannot find symbol;
symbol : variable ine, location: class jcckit.plot.CartesianCoordinateSystem at line 182, column 5
private void addLine(GraphPoint point1, GraphPoint point2, GraphicAttributes att) {
Polygon line = new Polygon(att, false);
line.addPoint(point1);
//错误行
line.addPoint(point2);
_view.addElement(line);
}
看起来好像是JBuilder忽略了line前面的“l”。我使用JB多次出现了类似的问题。常常是修改文件的某个地方,另外一个地方就报这样莫名其妙的错误,而且都是提示某个变量无法找到
 
E

EdwardZhou

Unregistered / Unconfirmed
GUEST, unregistred user!
比如下面的代码,总是提示说
"CartesianCoordinateSystem.java": cannot find symbol;
symbol : variable ine, location: class jcckit.plot.CartesianCoordinateSystem at line 182, column 5
private void addLine(GraphPoint point1, GraphPoint point2, GraphicAttributes att) {
Polygon line = new Polygon(att, false);
line.addPoint(point1);
//错误行
line.addPoint(point2);
_view.addElement(line);
}
看起来好像是JBuilder忽略了line前面的“l”。我使用JB多次出现了类似的问题。常常是修改文件的某个地方,另外一个地方就报这样莫名其妙的错误,而且都是提示某个变量无法找到
 
顶部