From d06855e27624ffd2d1b8b14e47e43a3889871b43 Mon Sep 17 00:00:00 2001 From: wisberg Date: Tue, 21 Jan 2003 19:53:15 +0000 Subject: [PATCH] added entry for detecting version --- docs/faq/faq.xml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/docs/faq/faq.xml b/docs/faq/faq.xml index 6ff455139..471309e25 100644 --- a/docs/faq/faq.xml +++ b/docs/faq/faq.xml @@ -2579,6 +2579,38 @@ java.lang.Integer + + + How do I detect which version I am running? + + + The ajc + compiler emits the version when passed the + -version flag as an argument. + + To programmatically + detect the version of the AspectJ runtime while running + under Java 1.4 or later, get the version from the package: + + Package lang = org.aspectj.lang.JoinPoint.class.getPackage(); + String version = lang.getImplementationVersion(); + + + When running under Java 1.3 or earlier, read the manifest + directly. For example code, see the source for + AjBuildManager.checkRtJar(AjBuildConfig) + in the org.aspectj.ajdt.internal.core.builder + package of the org.aspectj.ajdt.core module, + available as described in + . + + Note that the version of AspectJ for the tools in + aspectjtools.jar is in + org.aspectj.bridge.Version. + + + Common Problems @@ -3616,6 +3648,7 @@ vmparam -Xmx384m + -- 2.39.5