[sip-comm-dev] compatibility with java 1.4


#1

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-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#2

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-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#3

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-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#4

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="${dest}" 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-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#5

I think it's about special language constructs not classes versions
that these flags can enforce :slight_smile: 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 :wink:

Cheers,
Mihai

···

On 7/9/07, Benoit Pradelle <ze_real_neo@yahoo.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="${dest}" 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-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net