Problem with Boolean argument

Reply

Join Date: Apr 2005
Posts: 21
Reputation: luisator is an unknown quantity at this point 
Solved Threads: 0
luisator luisator is offline Offline
Newbie Poster

Problem with Boolean argument

 
0
  #1
Apr 20th, 2005
Hi everyone!!!
I am newbie in java programming, I am using a communication API. I am havin some problems. Iwant to use a method defined like this:

enableRecording
public abstract void enableRecording(DeviceID device,
Boolean immediatelyActive)
throws CstaException

and for that I am doing the following:

recordingActivation = new Boolean(true);
enableRecording(id, recordingActivation);

I get this error:

../src/sampleapps/tutorial/PrimerApp.java:226: cannot resolve symbol
symbol : method enableRecording (ch.ecma.csta.binding.DeviceID,java.lang.Boolean)
location: class PrimerApp
enableRecording(id, recordingActivation);
^
1 error

Can anybody help with this??? I've tried lot of things but I really don't know what else to try
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 2,108
Reputation: server_crash is on a distinguished road 
Solved Threads: 18
server_crash server_crash is offline Offline
Postaholic

Re: Problem with Boolean argument

 
0
  #2
Apr 20th, 2005
Since it's abstract shouldn't you override that method and implement your own version, instead of calling that method?
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 21
Reputation: luisator is an unknown quantity at this point 
Solved Threads: 0
luisator luisator is offline Offline
Newbie Poster

Re: Problem with Boolean argument

 
0
  #3
Apr 20th, 2005
Originally Posted by server_crash
Since it's abstract shouldn't you override that method and implement your own version, instead of calling that method?
Sorry mi ignorance, how do I override a method inside myclass? I think that is the point but I don't know how to do that
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC