Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 48367 Details for
Bug 154690
adviceDidNotMatch warning not added on incremental compile
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
failing testcase to reproduce the problem
pr154690-tests.txt (text/plain), 3.28 KB, created by
Helen Beeken
on 2006-08-22 09:12:18 EDT
(
hide
)
Description:
failing testcase to reproduce the problem
Filename:
MIME Type:
Creator:
Helen Beeken
Created:
2006-08-22 09:12:18 EDT
Size:
3.28 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P tests >Index: src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java >=================================================================== >RCS file: /home/technology/org.aspectj/modules/tests/src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java,v >retrieving revision 1.64 >diff -u -r1.64 MultiProjectIncrementalTests.java >--- src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java 18 Aug 2006 14:59:26 -0000 1.64 >+++ src/org/aspectj/systemtest/incremental/tools/MultiProjectIncrementalTests.java 22 Aug 2006 13:14:45 -0000 >@@ -1494,6 +1494,30 @@ > +warnings,warnings.isEmpty()); > } > >+ public void testAdviceDidNotMatchUpdatedCorrectly_pr154690() { >+ initialiseProject("PR154690"); >+ build("PR154690"); >+ String expected = "advice defined in pkg.A has not been applied " + >+ "[Xlint:adviceDidNotMatch]"; >+ assertEquals("warning message should be '" + expected + "' ",expected, >+ ((IMessage)MyTaskListManager.getWarningMessages().get(0)) >+ .getMessage()); >+ // add the class - the advice should now match >+ alter("PR154690","inc1"); >+ build("PR154690"); >+ List warnings = MyTaskListManager.getWarningMessages(); >+ assertTrue("There should be no warnings now the advice matches:\n"+warnings, >+ warnings.isEmpty()); >+ // comment out the matching line and we should get the adviceDidNotMatch warning >+ alter("PR154690","inc2"); >+ build("PR154690"); >+ checkWasntFullBuild(); >+ warnings = MyTaskListManager.getWarningMessages(); >+ assertEquals("warning message should be '" + expected + "' ",expected, >+ ((IMessage)MyTaskListManager.getWarningMessages().get(0)) >+ .getMessage()); >+ } >+ > // --- helper code --- > > /** >Index: multiIncremental/PR154690/base/pkg/A.aj >=================================================================== >RCS file: multiIncremental/PR154690/base/pkg/A.aj >diff -N multiIncremental/PR154690/base/pkg/A.aj >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ multiIncremental/PR154690/base/pkg/A.aj 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,12 @@ >+package pkg; >+ >+public aspect A { >+ >+ pointcut tracedPrint(String s): >+ call(void java.io.PrintStream.println(*)) >+ && args(s) && !within(A); >+ >+ before(String s): tracedPrint(s) { >+ System.out.println("got you: " + s + " ;)"); >+ } >+} >Index: multiIncremental/PR154690/inc2/pkg/C.java >=================================================================== >RCS file: multiIncremental/PR154690/inc2/pkg/C.java >diff -N multiIncremental/PR154690/inc2/pkg/C.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ multiIncremental/PR154690/inc2/pkg/C.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,7 @@ >+package pkg; >+ >+public class C { >+ public static void main(String[] args) { >+ //System.out.println("main"); >+ } >+} >Index: multiIncremental/PR154690/inc1/pkg/C.java >=================================================================== >RCS file: multiIncremental/PR154690/inc1/pkg/C.java >diff -N multiIncremental/PR154690/inc1/pkg/C.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ multiIncremental/PR154690/inc1/pkg/C.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,7 @@ >+package pkg; >+ >+public class C { >+ public static void main(String[] args) { >+ System.out.println("main"); >+ } >+}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 154690
: 48367