Hi Gang,
Ran into a curious compiler problem. My environment is as follows:
- Windows 8
- Eclipse Juno
- JDK 7 update 21 (64-bit) | JDK 7 update 25 (32-bit)
- JTAPI 9.x
When debugging the CTI application, using the Eclipse build, there are no compile problems. However, when I use Ant to build I get the following compiler error, regardless of the JDK version (32 or 64 bit):
1 retval = provider.getCall(ref.getGlobalCallId(), ref.getCallManagerId());
2 ^
3 method CiscoProvider.getCall(int) is not applicable
4 (actual and formal argument lists differ in length)
5 method CiscoProvider.getCall(CiscoRTPHandle) is not applicable
6 (actual and formal argument lists differ in length)
7 ReferenceDao.java:554: error: no suitable method found for getCall(Integer,Integer)
8 if (provider.getCall(ref.getGlobalCallId(), ref.getCallManagerId()) != null)
9 ^
10 method CiscoProvider.getCall(int) is not applicable
11 (actual and formal argument lists differ in length)
12 method CiscoProvider.getCall(CiscoRTPHandle) is not applicable
13 (actual and formal argument lists differ in length)
14 ReferenceDao.java:465: error: no suitable method found for getCall(int,int)
15 if (provider.getCall(ref.getGlobalCallId().intValue(), ref.getCallManagerId().intValue()) != null)
16 ^
17 method CiscoProvider.getCall(int) is not applicable
18 (actual and formal argument lists differ in length)
19 method CiscoProvider.getCall(CiscoRTPHandle) is not applicable
20 (actual and formal argument lists differ in length)
I am using CiscoProvider.getCall(int,int). In the code, under Eclipse, both CiscpProvider.getCall(Integer, Integer) and CiscoProvider.getCall(int, int) work (as they should). But when I build, I get the error