哪个版本的 AspectJ 适合 Java 1.4.2?

发布于 2024-12-05 00:17:48 字数 184 浏览 4 评论 0原文

我似乎可以找到 1.4.2 兼容性指南。

有擅长 AOP 的人可以给我一个提示吗?

http://www.eclipse.org/aspectj/downloads.php

I can seem to find an guide for 1.4.2 compatibility.

Can someone who is good in AOP give me a heads up.

http://www.eclipse.org/aspectj/downloads.php

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

天涯离梦残月幽梦 2024-12-12 00:17:49

您可以使用最新版本。你只是无法定义你的方面

@Aspect annotation

,但你可以用“旧方式”编写你的方面,它会起作用。

我还建议您下载 Eclipse 的 AJDT 插件。在开发方面时,它会给您视觉提示:

all the methods/class advised by a pointcut
advices all over your codebase.

在开发过程中非常有帮助。阶段。

You can use the latest version. You just won't be able to define your aspect with

@Aspect annotation

But you can write your aspects the 'old way' and it will work.

I also recommend you dowload the AJDT plugin for eclipse. When developing your aspects it give you visual hints on :

all the methods/class advised by a pointcut
advices all over your codebase.

Very helpful during dev. phase.

冰之心 2024-12-12 00:17:49

阅读您链接的页面

AspectJ 编译器为任何版本的 Java 平台(jdk1.1 及更高版本)生成程序。编译器本身需要Java2(1.4或更高版本)才能运行。

或该页面链接到的常见问题解答

AspectJ 需要和支持哪些 Java 版本?

AspectJ 编译器为任何已发布版本的 Java 平台(jdk1.1 及更高版本)生成程序。运行时,您的程序类必须能够从发行版访问小型(<100K)运行时库(aspectjrt.jar)中的类。这些工具本身需要 J2SE 1.3 或更高版本才能运行,但编译器可以为任何兼容 1.1 版本的 Java 平台生成类。

Read the page you linked:

The AspectJ compiler produces programs for any version of the Java platform (jdk1.1 and later). The compiler itself requires Java2 (1.4 or later) to run.

or the FAQ, which that page links to:

What Java versions does AspectJ require and support?

The AspectJ compiler produces programs for any released version of the Java platform (jdk1.1 and later). When running, your program classes must be able to reach classes in the small (< 100K) runtime library (aspectjrt.jar) from the distribution. The tools themselves require J2SE 1.3 or later to run, but the compiler can produce classes for any 1.1-compliant version of the Java platform.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文