Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-dev] Testing ajc (was Re: Cygwin support for building ajc?)

Hi Wes [et. al],

> That build script (like any in a "dist" directory) is only intended
> to be built when included in the AspectJ distribution.  If you installed
> what you built with the first Ant command, you'd find it at
> 
>    {install-directory}/doc/examples/build.xml

Is it typical to install the project each time for running the sanity and 
regression tests?

Or is it sufficient for me to install ajc only once and then pick the version I 
want to test by setting ASPECTJ_HOME?

> The test harness and suite is documented in 
> 
>    tests/readme-tests-module.html
>    tests/readme-writing-compiler-tests.html
> 
> These may also refer to other documentation.  (I think both the FAQ
> entry and the readme in the build module refer to these readmes.)
> 
> If you have specific questions after reading/following those 
> instructions, please email the list.  You may have found an
> (internal) doc bug!

Thanks for the details. I've read the above files, but it's still not clear to 
me what test set tests everything. Or am I incorrect in assuming there is an 
.xml file out there to give to Ant to perform all of the tests?

Thanks,
Macneil


P.S. I ran the spacewar sanity test and along the line I got this:

clean:
    [mkdir] Created dir: C:\aspectj1.1\doc\examples\classes
      [ajc] Compiling 0 source and 1 arg files to C:\aspectj1.1\doc\examples\cla
sses

Ajx-run:
     [echo] ##### Ajx-run list=spacewar/debug.lst class=spacewar.Game
     [java] java.lang.NullPointerException
     [java]     at spacewar.Display1$SpaceObjectPainting.ajc$interMethodDispatch
1$spacewar_Display1$SpaceObjectPainting$spacewar_SpaceObject$paint(Display1.java
)
     [java]     at spacewar.Display1.paintObjects(Display1.java:69)
     [java]     at spacewar.Display.update(Display.java:98)
     [java]     at sun.awt.RepaintArea.paint(RepaintArea.java:169)
     [java]     at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.jav
a:260)
     [java]     at java.awt.Component.dispatchEventImpl(Component.java:3658)
     [java]     at java.awt.Component.dispatchEvent(Component.java:3439)
     [java]     at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
     [java]     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDi
spatchThread.java:197)
     [java]     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDisp
atchThread.java:150)
     [java]     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.j
ava:144)
     [java]     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.j
ava:136)
     [java]     at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)


BUILD SUCCESSFUL
Total time: 3 minutes 30 seconds
***

I assume this is just a problem with the spacewar code. But is this a known 
problem?



Back to the top