blob: 6b6eb486ec2b8663fe7b6c631d5fec6d7a837a9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
Warning: brittle test! Change carefully and rebuild binaries!
Bugs: 37020, 37021, 37023
- there are 3+ associated test specifications:
- source-only
- binary (javac) application, source aspect
- binary (ajc) application, source aspect
- binary (javac) application, binary aspect (todo)
- binary (ajc) application, binary aspect (todo)
- the lines in Main.java correspond with
warning line values in the test specifications
- the message text in MainWarnings.java correspond with
warning text values in the test specifications
- all the warnings in MainWarnings.java
should resolve to unique lines
(until we verify based on more than line)
- all test specifications should have exactly the same warnings
as each other as as specified in MainWarnings.java
To build the injar sources from the src directory:
Using javac:
mkdir classes
javac -d classes app/Main.java
jar cfM ../injars/app-javac-1.4.jar -C classes .
rm -rf classes
Using ajc:
ajc -classpath ../../../lib/test/aspectjrt.jar \
-outjar ../injars/app-ajc-1.1.jar app/Main.java
Using ajc in eclipse, from a module directory:
{ajc} -classpath ../lib/test/aspectjrt.jar
-outjar ../tests/new/binaryWarnings/injars/app-ajc-1.1.jar
../test/new/binnaryWarnings/src/app/Main.java
|