• Post Reply Bookmark Topic Watch Topic
  • New Topic

Compile Error  RSS feed

 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm having trouble figuring out what is wrong with the following statement: setSelectedCharges(new ArrayList<Long>(convertToLong(getSelectedFeatures())), ElementType.FEATURE);

The compile error is: OrderManager.java:[1733,7] error: method setSelectedCharges in class OrderManager cannot be applied to given types;

I am copying this statement and the related methods from another class. The statement compiles fine in the source class but not in the destination class. The methods have copied are:


 
Michael Piaser
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One difference between the two classes is the package statement. I don't know what it does. I don't have no if it has any bearing on my problem but I thought I'd mention it.

The working class has package com.voxportal.web.order;
The failing class has package com.voxportal.web.device;
 
Michael Piaser
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I figured it out. Somehow I copied the wrong SetSelectedCharges method. I copied the correct one and now that statement is compiling.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!