List Info

Thread: compatibility with java 1.4




compatibility with java 1.4
user name
2007-07-09 07:05:49
Hi Benoit,

After your change I was trying to compile the code under
java 1.4 and I 
got some errors in OperationSetPresenceSipImpl, because of
the use of 
getTextContent method of org.w3c.dom.Element. As we're
trying to keep 
the code 1.4 compatible, could you please try to replace it
by some 
other method that is supported.

Thanks,
Yana

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribesip-communicator.dev.java.net
For additional commands, e-mail: dev-helpsip-communicator.dev.java.net


Re: compatibility with java 1.4
user name
2007-07-09 08:50:07
Hi all, Yana,

I'm really sorry for this mistake and everything is
corrected now.
There is something very strange in this: the compiler didn't
warn me 
even if it's supposed to be configured to compile only 1.4
code, is it 
normal ?

Cheers,
Ben

Yana Stamcheva a écrit :
> Hi Benoit,
>
> After your change I was trying to compile the code
under java 1.4 and 
> I got some errors in OperationSetPresenceSipImpl,
because of the use 
> of getTextContent method of org.w3c.dom.Element. As
we're trying to 
> keep the code 1.4 compatible, could you please try to
replace it by 
> some other method that is supported.
>
> Thanks,
> Yana
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: dev-unsubscribesip-communicator.dev.java.net
> For additional commands, e-mail: dev-helpsip-communicator.dev.java.net
>
>

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribesip-communicator.dev.java.net
For additional commands, e-mail: dev-helpsip-communicator.dev.java.net


Re: compatibility with java 1.4
user name
2007-07-09 09:35:18
Thanks Ben!

Benoit Pradelle wrote:
> Hi all, Yana,
> 
> I'm really sorry for this mistake and everything is
corrected now.
> There is something very strange in this: the compiler
didn't warn me 
> even if it's supposed to be configured to compile only
1.4 code, is it 
> normal ?

I don't think so. You should check which JRE is used to
build your 
project. If you're using Eclipse have a look in 
Window/Preferences/Installed JREs. There you should have a
list of all 
installed JREs - make sure that 1.4 is the selected one
(that's the one 
used to build and run your project). The compiler
configuration form in 
Eclipse only allows to set compiler's compliance level (if
you are 
allowed to use "assert", templates, etc.).

Yana

> 
> Cheers,
> Ben
> 
> Yana Stamcheva a écrit :
>> Hi Benoit,
>>
>> After your change I was trying to compile the code
under java 1.4 and 
>> I got some errors in OperationSetPresenceSipImpl,
because of the use 
>> of getTextContent method of org.w3c.dom.Element. As
we're trying to 
>> keep the code 1.4 compatible, could you please try
to replace it by 
>> some other method that is supported.
>>
>> Thanks,
>> Yana
>>
>>
------------------------------------------------------------
---------
>> To unsubscribe, e-mail: dev-unsubscribesip-communicator.dev.java.net
>> For additional commands, e-mail: dev-helpsip-communicator.dev.java.net
>>
>>
> 
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: dev-unsubscribesip-communicator.dev.java.net
> For additional commands, e-mail: dev-helpsip-communicator.dev.java.net
> 
> 

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribesip-communicator.dev.java.net
For additional commands, e-mail: dev-helpsip-communicator.dev.java.net


Re: compatibility with java 1.4
user name
2007-07-09 09:40:45
Yana Stamcheva a écrit :
> Thanks Ben!
>
> Benoit Pradelle wrote:
>> Hi all, Yana,
>>
>> I'm really sorry for this mistake and everything is
corrected now.
>> There is something very strange in this: the
compiler didn't warn me 
>> even if it's supposed to be configured to compile
only 1.4 code, is 
>> it normal ?
>
> I don't think so. You should check which JRE is used to
build your 
> project. If you're using Eclipse have a look in 
> Window/Preferences/Installed JREs. There you should
have a list of all 
> installed JREs - make sure that 1.4 is the selected one
(that's the 
> one used to build and run your project). The compiler
configuration 
> form in Eclipse only allows to set compiler's
compliance level (if you 
> are allowed to use "assert", templates,
etc.).
I'm building the project using ant in a terminal, in the
build.xml the 
compilation is made using this command:
        <javac
classpathref="compile.class.path"
debug="true"
            deprecation="true"
destdir="$" nowarn="false"
            source="1.4"
target="1.4">
as you can see, even if I'm using java 6, ant is supposed to
pass to 
javac the source and target arguments with the 1.4 value.
Aren't these 
argument supposed to force javac to fail if I'm using non
1.4 code ?

Ben

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribesip-communicator.dev.java.net
For additional commands, e-mail: dev-helpsip-communicator.dev.java.net


Re: compatibility with java 1.4
user name
2007-07-09 10:34:34
I think it's about special language constructs not classes
versions
that these flags can enforce  Because it
would be unreal for a SDK
to keep versions of all the classes in order to enforce
class-compliance with older versions of the SDK ;)

Cheers,
Mihai

On 7/9/07, Benoit Pradelle <ze_real_neoyahoo.fr> wrote:
> Yana Stamcheva a écrit :
> > Thanks Ben!
> >
> > Benoit Pradelle wrote:
> >> Hi all, Yana,
> >>
> >> I'm really sorry for this mistake and
everything is corrected now.
> >> There is something very strange in this: the
compiler didn't warn me
> >> even if it's supposed to be configured to
compile only 1.4 code, is
> >> it normal ?
> >
> > I don't think so. You should check which JRE is
used to build your
> > project. If you're using Eclipse have a look in
> > Window/Preferences/Installed JREs. There you
should have a list of all
> > installed JREs - make sure that 1.4 is the
selected one (that's the
> > one used to build and run your project). The
compiler configuration
> > form in Eclipse only allows to set compiler's
compliance level (if you
> > are allowed to use "assert", templates,
etc.).
> I'm building the project using ant in a terminal, in
the build.xml the
> compilation is made using this command:
>         <javac
classpathref="compile.class.path"
debug="true"
>             deprecation="true"
destdir="$" nowarn="false"
>             source="1.4"
target="1.4">
> as you can see, even if I'm using java 6, ant is
supposed to pass to
> javac the source and target arguments with the 1.4
value. Aren't these
> argument supposed to force javac to fail if I'm using
non 1.4 code ?
>
> Ben
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: dev-unsubscribesip-communicator.dev.java.net
> For additional commands, e-mail: dev-helpsip-communicator.dev.java.net
>
>
[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )