|
Attention! Read the forum rules carefully before posting a topic.
Try to find an answer in Wiki before asking a question. Submit programming questions in this forum only. Off topics are strictly forbidden.
Any topics which do not satisfy these rules will be deleted.
Filter problem |
us_copiosus
|
Post subject: Filter problem |
Post rating: 0
|
Posted: Sat 21 Sep, 2013, 00:36
|
|
User rating: 2
Joined: Fri 02 Mar, 2012, 22:08 Posts: 200 Location: New Zealand, Dunedin
|
private Filter indicatorFilter = Filter.WEEKENDS;
The above is fine in my current strategy (in Netbeans)
However, when I introduce weka (mining suite) which also has filters I get the following error
cannot find symbol [variable WEEKENDS] in location [class Filter]
I suspect there is ambiguity because both dukascopy API and weka.API use filters
What do I do to tweek the above one line to show that I am referring to dukascopy API?
Bob M
|
|
|
|
 |
CriticalSection
|
Post subject: Re: Filter problem |
Post rating: 2
|
Posted: Sat 21 Sep, 2013, 10:46
|
|
User rating: 70
Joined: Sat 22 Sep, 2012, 17:43 Posts: 118 Location: Brazil, Fortaleza, Ceará
|
Your suspicion is spot on, package ambiguity exists with what looks like the weka Filter type taking precedence on the classpath. Move forward by fully qualifying your use of the conflicting type as follows:
com.dukascopy.api.Filter private com.dukascopy.api.Filter indicatorFilter = com.dukascopy.api.Filter.WEEKENDS;
All the best
|
|
|
|
 |
us_copiosus
|
Post subject: Re: Filter problem |
Post rating: 0
|
Posted: Sun 22 Sep, 2013, 00:01
|
|
User rating: 2
Joined: Fri 02 Mar, 2012, 22:08 Posts: 200 Location: New Zealand, Dunedin
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|