#!/bin/sh # info: test ajc command line # syntax: $0 (define JDKDIR and AJ_BASE) # @testcase PR#655 ajc errors when output dir is bad # @process-test ajdoc ajdocTests.sh # tests for PR628, PR688, PR711 [ -n "$DEBUG" ] && set -vx errMssg() { [ -n "$1" ] && echo "## $0 $1" [ -n "$2" ] && exit "$2" } runAjdoc() { ccdir="${globalClasses:-classes}" [ -d "$ccdir" ] || mkdir "$ccdir" rm -rf "$ccdir"/* #export CLASSPATH="$jdktoolsjar" #$JDKDIR/bin/java -jar c:/home/wes/aj/aj-build-modules/jars/ajdoc.jar \ # -d "$ccdir" -classpath "$rtjar" "${@}" $JDKDIR/bin/java -classpath "$jdktoolsjar${PS}$toolsjar" org.aspectj.tools.ajdoc.Main \ -d "$ccdir" -classpath "$rtjar" "${@}" } declareWarningDoc() { ## test of declare warnings - which are not documented but should be? echo "## warning - simple declare warning currently causes compiler failure" cat>DeclareWarningDoc.java<AjdocTest.java< *
  • link: {@link Aspect#ok()}
  • *
  • link: {@link C#ok()}
  • *
  • link: {@link C#bad}
  • *
  • link: {@link Aspect#bad()} // fails iff ()
  • *
  • link: {@link Aspect#bad}
  • * * @see Aspect#bad * @see C#bad * @see Aspect#ok() * @see C#ok() */ public interface AjdocTest { } aspect Aspect { void ok() {} } class C { void ok() {} } EOF runAjdoc -private AjdocTest.java } pr628() { ## PR#628 - also test case for PR#710, PR#711, PR#712 cat>AjdocTest.java<