• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Porting from JDK 1.3 to 1.5

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 27540
88
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic