• Post Reply Bookmark Topic Watch Topic
  • New Topic

Porting from JDK 1.3 to 1.5  RSS feed

 
Thanga prakash Somasundaram
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Currently we are working with JDK 1.3 base version. We are planning to go for JDK 1.5 Tiger.

I found one of the issues as String to byte[] and viceversa, leads to improper string.

Please, highlight your experience / guide for the same..

thanks in advance,

regards,
stp.
 
Paul Clapham
Sheriff
Posts: 22816
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found one of the issues as String to byte[] and viceversa, leads to improper string.

This will happen in any version of Java if you don't take encodings or charsets into account. But do you ask this because it actually happened to you, or because you heard a rumour that it happened to somebody else?
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16057
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java is upwards compatible, so you shouldn't have too many problems running your Java 1.3 application on Java 1.5.

See the following document for detailed information:
Java 2 Platform Standard Edition 5.0 - Compatibility with Previous Releases
 
Thanga prakash Somasundaram
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

I personally faced the problem in our applications

String to byte[] and viceversa, will not give back ur String.

This is due to some encoding scheme changes at String in JDK 1.4.2.

==> http://java.sun.com/j2se/1.4.2/relnotes.html

Please, help me to track the issues from JDK 1.3 to JDK 1.5.

Is it required to go through each releaseNotes from 1.3.1 to 1.5 including all the patches ?

Is it sufficient to go through releaseNotes of 1.3.1 , 1.4.0, 1.4.1, 1.4.2,
and 1.5.0 ?

I am trying to fix the problems with my applications.
I am trying to remove the workarounds of older bugs from my applications.

bit urgent..

regards,
stp.
 
joseph edwards
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The reason why the byte [] to String conversions may not always work reliably is due to internationalization & localization support.

Specifically, the conversion may result in different Strings if your locale was set to Japan versus North America.

It is best to avoid such byte [] to String conversions, especially if you plan to internationalize your application.

Originally posted by Thanga prakash Somasundaram:
Hi all,

Currently we are working with JDK 1.3 base version. We are planning to go for JDK 1.5 Tiger.

I found one of the issues as String to byte[] and viceversa, leads to improper string.

Please, highlight your experience / guide for the same..

thanks in advance,

regards,
stp.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!