(J2ME) CLDC1.0 and equalsIgnoreCase?  
Author Message
ShaggyMoose





PostPosted: 2007-6-6 5:12:00 Top

java-programmer, (J2ME) CLDC1.0 and equalsIgnoreCase? When I try to compile a class using this method under WTK2.5 with a
CLDC1.0 target, I get:

cannot find symbol
symbol : method equalsIgnoreCase(java.lang.String)
location: class java.lang.String

The source compiles fine under JRE 1.5 and I can't see any mention
that equalsIgnoreCase was only added in CLDC1.1. Is the method not
available or am I doing something wrong? Thanks.

 
Bjorn Abelli





PostPosted: 2007-6-6 16:46:00 Top

java-programmer >> (J2ME) CLDC1.0 and equalsIgnoreCase?
"ShaggyMoose" <email***@***.com> wrote...

> When I try to compile a class using this method under WTK2.5 with a
> CLDC1.0 target, I get:
>
> cannot find symbol
> symbol : method equalsIgnoreCase(java.lang.String)
> location: class java.lang.String
>
> The source compiles fine under JRE 1.5 and I can't see any mention
> that equalsIgnoreCase was only added in CLDC1.1. Is the method not
> available or am I doing something wrong? Thanks.

It seems as it was added in 1.1.

You can e.g. compare the api's for 1.0 and 1.1:

1.0:
http://java.sun.com/javame/reference/apis/jsr030/java/lang/String.html

1.1:
http://java.sun.com/javame/reference/apis/jsr139/java/lang/String.html


/// Bjorn A



 
ShaggyMoose





PostPosted: 2007-6-6 21:54:00 Top

java-programmer >> (J2ME) CLDC1.0 and equalsIgnoreCase? > It seems as it was added in 1.1.
>
> You can e.g. compare the api's for 1.0 and 1.1:
>
> 1.0:http://java.sun.com/javame/reference/apis/jsr030/java/lang/String.html
>
> 1.1:http://java.sun.com/javame/reference/apis/jsr139/java/lang/String.html
>
> /// Bjorn A

Thanks. I was working from the CLDC1.1 docs and relying on the "Since
CLDC 1.1" comments. There isn't one for this method.

Programming for CLDC1.0 is a pain in the...