Dukascopy
 
 
Wiki JStore Search Login

JDK 1.8.0 error with method contains(CharSequence)
 Post subject: JDK 1.8.0 error with method contains(CharSequence) Post rating: 0   New post Posted: Fri 28 Mar, 2014, 11:19 
User avatar

User rating: 7
Joined: Thu 05 Sep, 2013, 12:43
Posts: 56
Location: Russian Federation, Tomsk
Hello,

After update JDK to 1.8.0 I have some error during compile code
The method contains(CharSequence) from the type String refers to the missing type CharSequence


There is a code
if (order.getLabel().contains(myLabel)) {
   /* some code here */
}


When I use old JDK 1.7 there is no error, code compile well.


 
 Post subject: Re: JDK 1.8.0 error with method contains(CharSequence) Post rating: 1   New post Posted: Fri 28 Mar, 2014, 12:03 
User avatar

User rating: 96
Joined: Mon 09 Sep, 2013, 07:09
Posts: 287
Location: Ukraine, SHostka
Does your system correspond these requirements https://www.oracle.com/technetwork/java/javase/certconfig-2095354.html ?


 
 Post subject: Re: JDK 1.8.0 error with method contains(CharSequence) Post rating: 0   New post Posted: Fri 28 Mar, 2014, 12:46 
User avatar

User rating: 7
Joined: Thu 05 Sep, 2013, 12:43
Posts: 56
Location: Russian Federation, Tomsk
hebasto wrote:
Does your system correspond these requirements https://www.oracle.com/technetwork/java/javase/certconfig-2095354.html ?

Yes, I try to compile code under Win7 Pro SP1 x64 and Ubuntu 13.10 x86. In both cases I get the same error "The method contains(CharSequence) from the type String refers to the missing type CharSequence"


 
 Post subject: Re: JDK 1.8.0 error with method contains(CharSequence) Post rating: 1   New post Posted: Mon 31 Mar, 2014, 10:30 
User avatar

User rating: 96
Joined: Mon 09 Sep, 2013, 07:09
Posts: 287
Location: Ukraine, SHostka
This topic can explain: Java 1.6 only


 
 Post subject: Re: JDK 1.8.0 error with method contains(CharSequence) Post rating: 0   New post Posted: Fri 11 Apr, 2014, 07:25 
User avatar

User rating: 96
Joined: Mon 09 Sep, 2013, 07:09
Posts: 287
Location: Ukraine, SHostka
Check the new DEMO 2.34.1


 
 Post subject: Re: JDK 1.8.0 error with method contains(CharSequence) Post rating: 0   New post Posted: Fri 11 Apr, 2014, 08:26 
User avatar

User rating: 7
Joined: Thu 05 Sep, 2013, 12:43
Posts: 56
Location: Russian Federation, Tomsk
hebasto wrote:
Check the new DEMO 2.34.1

Doesn't work. The same error.


 
 Post subject: Re: JDK 1.8.0 error with method contains(CharSequence) Post rating: 1   New post Posted: Fri 11 Apr, 2014, 08:40 
User avatar

User rating: 96
Joined: Mon 09 Sep, 2013, 07:09
Posts: 287
Location: Ukraine, SHostka
It compiles flawlessly for me:
Image

What is exactly JRE version installed on your system? 32- or 64-bit?


Attachments:
java8.PNG [30.52 KiB]
Downloaded 715 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: JDK 1.8.0 error with method contains(CharSequence) Post rating: 0   New post Posted: Fri 11 Apr, 2014, 08:52 
User avatar

User rating: 7
Joined: Thu 05 Sep, 2013, 12:43
Posts: 56
Location: Russian Federation, Tomsk
hebasto wrote:
What is exactly JRE version installed on your system? 32- or 64-bit?

I try under Linux Ubuntu 13.10 x86 JRE 1.8 (32 bit)
I will try under win8 x64 with JRE 1.8 (64 bit) and responde later


 
 Post subject: Re: JDK 1.8.0 error with method contains(CharSequence) Post rating: 0   New post Posted: Fri 11 Apr, 2014, 09:22 
User avatar

User rating: 7
Joined: Thu 05 Sep, 2013, 12:43
Posts: 56
Location: Russian Federation, Tomsk
I try to compile under Win8 x64 with JRE 1.8 (64 bit). The same error.

Image

Image

Image


Attachments:
Strategy.java [1.23 KiB]
Downloaded 211 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: JDK 1.8.0 error with method contains(CharSequence) Post rating: 0   New post Posted: Thu 12 Jun, 2014, 20:05 
User avatar

User rating: 96
Joined: Mon 09 Sep, 2013, 07:09
Posts: 287
Location: Ukraine, SHostka
https://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=65&t=51224&p=80021#p80021


 
 Post subject: Re: JDK 1.8.0 error with method contains(CharSequence) Post rating: 0   New post Posted: Wed 18 Jun, 2014, 11:55 
JForex Master
User avatar

User rating:
Joined: Wed 16 Sep, 2009, 18:23
Posts: 1049
Location: Geneva, Switzerland
Try version 2.37.1 on DEMO. Most probably it is solved.


 

Jump to:  

cron
  © 1998-2024 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com