weird compile error - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

weird compile error

FeikjeFeikje Posts: 5Member
I get the weirdest error when I try to compile a class that extends another class, and takes that class as an argument to its constructor.

The code looks like this:

public class OrderedDepTreeModel extends RSDepTreeModel
{
public OrderedDepTreeModel(RSDepTreeModel tree) //line 18
{
....

and the error is this:

src/natlang/rdg/model/OrderedDepTreeModel.java:18: cannot resolve symbol
symbol: constructor RSDepTreeModel ()
location: class natlang.rdg.model.RSDepTreeModel
{
^

The classes are in the same package, by the way. Does anyone have a clue as to what could cause this?

Greetings,

Feikje
Sign In or Register to comment.