Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2006

Tip: Looking for answers? Try searching our database.

1.5 code base compiled with -target jsr14

Thread view: 
au714@osfn.org - 12 Apr 2006 14:53 GMT
I have a JDK 1.5 code base (a few hundred files) that is auto-generated
and uses 1.5 language features, mostly generics as far as I know.  I
want to compile this and run on a 1.4.2 JVM.

I have done some reading here and am proceeding by

Compiling the code with a 1.5 javac with -target jsr14

I have run the generated class files on a 1.4.2 JVM with no initial
problems.

Does this seem like a reasonable approach?  Are there any hidden
"gotchas" that might come up at runtime?

Note that I also must ensure that there are no 1.5 specific objects or
methods in my code base.

FGB
Thomas Hawtin - 12 Apr 2006 15:17 GMT
> Compiling the code with a 1.5 javac with -target jsr14

> Does this seem like a reasonable approach?  Are there any hidden
> "gotchas" that might come up at runtime?

Well, it isn't supported, may be full of bugs, might not match the
actual specs and may be removed at any time.

Tom Hawtin
Signature

Unemployed English Java programmer
http://jroller.com/page/tackline/

au714@osfn.org - 12 Apr 2006 17:30 GMT
Heh, are those the only issues you can think of :)
VisionSet - 12 Apr 2006 16:22 GMT
> I have a JDK 1.5 code base (a few hundred files) that is auto-generated
> and uses 1.5 language features, mostly generics as far as I know.  I
[quoted text clipped - 12 lines]
> Note that I also must ensure that there are no 1.5 specific objects or
> methods in my code base.

You could use Retroweaver

--
Mike W


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.