将JDK5.0开发的项目转为JDK1.4可运行的项目Retrotranslator

本文介绍使用Retrotranslator和Retroweaver将基于JDK5.0开发的项目转换为可在JVM1.4上运行的方法。通过这两种工具,开发者可以在不牺牲与1.4虚拟机的兼容性的前提下利用Java1.5的新特性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

将JDK5.0开发的项目转为JDK1.4可运行的项目Retrotranslator、Retroweaver

http://iamin.blogdriver.com/iamin/1177133.html

1、Retrotranslator
http://retrotranslator.sourceforge.net/

Retrotranslator is a Java bytecode transformer that translates Java classes compiled with JDK 5.0 into classes that can be run on JVM 1.4. It is a free, open-source tool based on the ASM bytecode manipulation framework and concurrency utilities backported to Java 1.4.

所能够支持1.5语言的特性如下:
Generics (generic types)
Annotations (metadata)
Reflection on generics and annotations
Typesafe enums (enumerated types)
Autoboxing/unboxing
Enhanced for loop (for-each loop)
Varargs (variable arguments)
Static import
Concurrency utilities
Collections framework enhancements

2、Retroweaver
http://retroweaver.sourceforge.net/

Use Generics In 1.4!
Retroweaver supports most 1.5 features while running on 1.4.

Develop With 1.5 And Deploy With 1.4!
Transparent bytecode enhancement allows you to develop against 1.5 and seamlessly deploy on 1.4.

所能够支持1.5语言的特性如下:
Supported 1.5 Language Features
generics
extended for loops
static imports
autoboxing/unboxing
varargs
enumerations
annotations

Retroweaver: Use the language of the future, now.
Are you a Java developer who's excited about the new JDK 1.5 language features? Does your heart race when you think about generics and parametric polymorphism? Do extended for loops make you feel warm and fuzzy inside? Do thoughts of autoboxing and static imports permeate your dreams?

Then let me welcome you to Retroweaver. Retroweaver is a bytecode weaver that enables you to take advantage of the new Java 1.5 language features, while still retaining total binary compatability with 1.4 virtual machines. Retroweaver operates by transforming Java class files compiled by a 1.5 compiler into version 1.4 class files which can then be run on any 1.4 virtual machine.

So, when your favorite vendor tells you that their application server won't be supporting JDK 1.5 until 2007, or your customers won't have JDK 1.5 for years to come, or your manager refuses to begin development on a beta JDK, put Retroweaver to work for you.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值