Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I don't get it..cannot resolve symbol.

 
Accela Moon
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Error:
[ edited to remove the evil, wicked tab character, and to break some awfully long lines -ds ]
[ April 13, 2004: Message edited by: Dirk Schreckmann ]
 
jul smith
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the constructor historyId comes before userId, but when you try and create an object you have the historyId after the userId.
The compiler is telling you that it can't find a constructor with the same types in the same order.
 
Accela Moon
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oops, the above code is faulty, but thats not the main problem. It still gives me the same error when compiling.
 
Accela Moon
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I understand it, the data type in classHistory class is incorrect, sorry for the trouble.
 
Tobias Hess
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

This is the constructor, it has seven parameters.

And this ist your object creation, it has six parameters.
This doesn't match, does it?
[ April 13, 2004: Message edited by: Tobias Hess ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic