From edaba5751fe4faba5ef1f9c9d79b6c0e95963f86 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 3 Feb 2011 02:37:40 +0000 Subject: [PATCH] 336158 - testcode --- .../pr336158/base/src/City$Keys.class | Bin 0 -> 467 bytes .../pr336158/base/src/City.class | Bin 0 -> 846 bytes .../multiIncremental/pr336158/base/src/City.java | 6 ++++++ .../pr336158/base/src/City_Roo_Op4j.class | Bin 0 -> 1950 bytes .../pr336158/base/src/City_Roo_Op4j.java | 5 +++++ .../pr336158/base/src/Function.class | Bin 0 -> 540 bytes .../pr336158/base/src/Function.java | 1 + .../tools/IncrementalCompilationTests.java | 9 +++++++++ 8 files changed, 21 insertions(+) create mode 100644 tests/multiIncremental/pr336158/base/src/City$Keys.class create mode 100644 tests/multiIncremental/pr336158/base/src/City.class create mode 100644 tests/multiIncremental/pr336158/base/src/City.java create mode 100644 tests/multiIncremental/pr336158/base/src/City_Roo_Op4j.class create mode 100644 tests/multiIncremental/pr336158/base/src/City_Roo_Op4j.java create mode 100644 tests/multiIncremental/pr336158/base/src/Function.class create mode 100644 tests/multiIncremental/pr336158/base/src/Function.java diff --git a/tests/multiIncremental/pr336158/base/src/City$Keys.class b/tests/multiIncremental/pr336158/base/src/City$Keys.class new file mode 100644 index 0000000000000000000000000000000000000000..3f0052b9ed267c5ab7f7606c5271bb2428af15a1 GIT binary patch literal 467 zcmZ9IOG^VW6opUvp6O_7eO6aO7uJPEaM#jJp->zw*ivv+(lOMOF(dO3`m@A^;KCo^ zj}q^VMZrLFCUzu_YVM1uVsIR(6tF)AK}GD#F&zsZ^C7zw`zPAOZSo=Tv}0ZGfW%b{YY z1D7gQsK?b!ZDn08$4B| literal 0 HcmV?d00001 diff --git a/tests/multiIncremental/pr336158/base/src/City.class b/tests/multiIncremental/pr336158/base/src/City.class new file mode 100644 index 0000000000000000000000000000000000000000..c24cd36f1fd07c48d4da884775ff47469338f662 GIT binary patch literal 846 zcmb_a&2G~`5dJoC>ckk*rcnM%3q7<593jCeh)YqW3PUAQ1tAX6#$7oZxpuYQ6!o#- z08$S;05=Xi0Z+jN@vU1F4($Pn!_0bSXTBfXUw<8c0q_WGK57EqrnW~uJc0R%Je1u` z=4p3lG*O8an0u;oZJ!C$*Ea@kw%Ahv>S%>%U{0VN>s-B>?vIq&m7`1vbmAhB*+3fY z>eHrY$GRk1?6`Ww*_S#OSXzG<&p7+m=sfK?o~STsB+CP8m_+ZDJX9unsqDDed#;j9 z8fkTr&!}7I;IfZJftDj!d!dfX5Ld9|6mRdo6$s+3X`Z;PUVv-3;p4hM^G`3tO=qT_ zDq8lWNvU=53~9va7gLj{E$ysUWRWu<5N_wWGMkw!OT}%^Nf1~$!^fM-&On)xY6OkG``Nt5SARsq8;fYHJwvyJm z4=Si9ymd4FM=X58)e|tc8gLx&2+_a{+{Z24uKLT&HQd1p&wvme#wv;KvJNX~h=)JE w{T$;SJKy_EoM=~n!SHoa40jG5PkL+~yA?6~7qfp`n`vvD8vpNRYdFX3ZvvQ+>;M1& literal 0 HcmV?d00001 diff --git a/tests/multiIncremental/pr336158/base/src/City.java b/tests/multiIncremental/pr336158/base/src/City.java new file mode 100644 index 000000000..a8d32933a --- /dev/null +++ b/tests/multiIncremental/pr336158/base/src/City.java @@ -0,0 +1,6 @@ +public class City { + + public static void main(String[] args) { + Keys.CITY.get(); // Keys.City cannot be resolved + } +} diff --git a/tests/multiIncremental/pr336158/base/src/City_Roo_Op4j.class b/tests/multiIncremental/pr336158/base/src/City_Roo_Op4j.class new file mode 100644 index 0000000000000000000000000000000000000000..22e3d47e9ccbeda7d20f58dc3aeac2eda293f200 GIT binary patch literal 1950 zcmds1%Wf1$6g@Q$&m$c?n1^u!=8;LThcF$-<{=p+F{2<^I5=V)BiLBwc4el9cJ-*L z#>U@~k6^=s$HEAtWS2yILJFuRVrz(a2fZsXz-p942PCp zxvsQzvd!0HG0$+sxp#$bO4W*mP1K??maB+DMwbQ(l5_D=6uZ=4F=VHvR~d4RWJ8oe z*aGZBnPHz#ml)gdjwRZv1ju8gfH8&xLom2HQi*H5&2^zy94dyfr6l67!PpBRm<77Gz5#AF7>|rBg6iw={HbMCc0HmT{`t`!MB92FLata%C?1-k;8Z_ zKmo-9jx(Gl?{LpMW%gRK;PYQjdTQg_JCW#GnW!Q%WlZ9fgYpSOZK{vprqx8}e4phN z<&L&eo0~MJC-RnKaGassOnN#JSET1)fc&~+j$z_@Pg%JsR;7`|%z{#h#3H|3~S*JhVq0wip8c-Hr!71 zZPVqEAe$GfGZR{2tO+-Jv6YJ|(%z9e?dsXt^E2lzhU?sj(C8=}#`LfTQh6E)adwAp z+OTt#_Shs*1WuBwS-QWOO4;22pfcf38Cml5Ey1b&0j)l#kCnq;HTKal{wv4=!N>ACcF`^+#HBr!8tOzPQM1u(@^n-Jjq(cHzY>}7bxgi rleXN${&MT=PybtXSNLtR52yV<t9m@Y4t4o4v literal 0 HcmV?d00001 diff --git a/tests/multiIncremental/pr336158/base/src/City_Roo_Op4j.java b/tests/multiIncremental/pr336158/base/src/City_Roo_Op4j.java new file mode 100644 index 000000000..9fbea9252 --- /dev/null +++ b/tests/multiIncremental/pr336158/base/src/City_Roo_Op4j.java @@ -0,0 +1,5 @@ +privileged aspect City_Roo_Op4j { + public static class City.Keys { + public static final Function CITY = null; + } +} diff --git a/tests/multiIncremental/pr336158/base/src/Function.class b/tests/multiIncremental/pr336158/base/src/Function.class new file mode 100644 index 0000000000000000000000000000000000000000..a19801d2533df2c91b555c9e9029a691e53216ff GIT binary patch literal 540 zcmaJ-O;5r=5PjPs9~A^qIU7&vp~S1LO+dq`>H)%iDVwsSwq$8B{wz->9{d6RDC2CU z8pL?mnR#ztX5P&E$Lkw_3v?4}4!_e6j zJ}nAy`&;FXdd{ftc%(K%L3Zp!g*IO<$lKh06nrI=eJj#gGQAN+@O{8*xi!z5FI z7)WicQB1e>q71d63}c>VivC=;cj^D$-|7FsdD}7^gB;Rb0fQc0hH! { public void get() {}} diff --git a/tests/src/org/aspectj/systemtest/incremental/tools/IncrementalCompilationTests.java b/tests/src/org/aspectj/systemtest/incremental/tools/IncrementalCompilationTests.java index 10fd73210..25642f6f3 100644 --- a/tests/src/org/aspectj/systemtest/incremental/tools/IncrementalCompilationTests.java +++ b/tests/src/org/aspectj/systemtest/incremental/tools/IncrementalCompilationTests.java @@ -83,6 +83,15 @@ public class IncrementalCompilationTests extends AbstractMultiProjectIncremental assertContains("B.java:4:0::0 Unhandled exception type IOException", getErrorMessages(p).get(0)); } + public void testITIT_336158() throws Exception { + String p = "pr336158"; + initialiseProject(p); + build(p); + checkWasFullBuild(); + assertNoErrors(p); + checkCompileWeaveCount(p, 3, 4); + } + public void testITIT_336147() throws Exception { String p = "pr336147"; initialiseProject(p); -- 2.39.5