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 177324 Details for
Bug 323507
NoClassDefFoundError is risen after compiling with AspectJ or LTW
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Test Case
pr323507-TestsPatch.txt (text/plain), 5.63 KB, created by
Abraham Nevado
on 2010-08-24 10:51:54 EDT
(
hide
)
Description:
Test Case
Filename:
MIME Type:
Creator:
Abraham Nevado
Created:
2010-08-24 10:51:54 EDT
Size:
5.63 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P tests >Index: src/org/aspectj/systemtest/ajc1610/ajc1610.xml >=================================================================== >RCS file: /cvsroot/tools/org.aspectj/modules/tests/src/org/aspectj/systemtest/ajc1610/ajc1610.xml,v >retrieving revision 1.5 >diff -u -r1.5 ajc1610.xml >--- src/org/aspectj/systemtest/ajc1610/ajc1610.xml 13 Aug 2010 15:44:14 -0000 1.5 >+++ src/org/aspectj/systemtest/ajc1610/ajc1610.xml 24 Aug 2010 14:50:53 -0000 >@@ -2,6 +2,13 @@ > > <suite> > >+ <ajc-test dir="bugs1610/pr323507" title="pr323507"> >+ <compile files="Test.java Azpect.aj B.java A.java C.java D.java Detector.java" options="-1.5"/> >+ <file deletefile="C.class"/> >+ <run class="Test" > >+ </run> >+ </ajc-test> >+ > <ajc-test dir="bugs1610/pr322446" title="declare parents abstract aspect"> > <compile files="Super.java I.java" outjar="aspects.jar" options="-1.5"/> > <compile files="Code.java" classpath="aspects.jar" options="-1.5 -emacssym"/> >Index: src/org/aspectj/systemtest/ajc1610/Ajc1610Tests.java >=================================================================== >RCS file: /cvsroot/tools/org.aspectj/modules/tests/src/org/aspectj/systemtest/ajc1610/Ajc1610Tests.java,v >retrieving revision 1.5 >diff -u -r1.5 Ajc1610Tests.java >--- src/org/aspectj/systemtest/ajc1610/Ajc1610Tests.java 13 Aug 2010 15:44:14 -0000 1.5 >+++ src/org/aspectj/systemtest/ajc1610/Ajc1610Tests.java 24 Aug 2010 14:50:53 -0000 >@@ -7,6 +7,7 @@ > * > * Contributors: > * Andy Clement - initial API and implementation >+ * Abraham Nevado > *******************************************************************************/ > package org.aspectj.systemtest.ajc1610; > >@@ -18,6 +19,12 @@ > > public class Ajc1610Tests extends org.aspectj.testing.XMLBasedAjcTestCase { > >+ public void testClassNotFoundException_323507() >+ { >+ runTest("pr323507"); >+ >+ } >+ > public void testAbstractAspectDeclareParents_322446() { > runTest("declare parents abstract aspect"); > } >Index: bugs1610/pr323507/Test.java >=================================================================== >RCS file: bugs1610/pr323507/Test.java >diff -N bugs1610/pr323507/Test.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ bugs1610/pr323507/Test.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,6 @@ >+public class Test{ >+ public static void main(String args[]){ >+ System.out.println("OK: " + new A()); >+ } >+ >+} >\ No newline at end of file >Index: bugs1610/pr323507/Detector.java >=================================================================== >RCS file: bugs1610/pr323507/Detector.java >diff -N bugs1610/pr323507/Detector.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ bugs1610/pr323507/Detector.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,6 @@ >+public class Detector{ >+ public static boolean alwaysFalse(){ >+ return false; >+ } >+ >+} >\ No newline at end of file >Index: bugs1610/pr323507/C.java >=================================================================== >RCS file: bugs1610/pr323507/C.java >diff -N bugs1610/pr323507/C.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ bugs1610/pr323507/C.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,10 @@ >+public class C implements D{ >+ public C(Object o){ >+ ; >+ } >+ >+ public void dummyMethod(){ >+ ; >+ } >+ >+} >\ No newline at end of file >Index: bugs1610/pr323507/Azpect.aj >=================================================================== >RCS file: bugs1610/pr323507/Azpect.aj >diff -N bugs1610/pr323507/Azpect.aj >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ bugs1610/pr323507/Azpect.aj 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,13 @@ >+public aspect Azpect { >+ before() : execution(* *(..)) { >+ System.out.println(thisJoinPoint.toLongString()); >+ } >+ >+ after() : execution(* *(..)) { >+ System.out.println(thisJoinPoint.toLongString()); >+ } >+ >+ after() throwing (Throwable t): execution(* *(..)){ >+ System.out.println(thisJoinPoint.toLongString()); >+ } >+} >\ No newline at end of file >Index: bugs1610/pr323507/A.java >=================================================================== >RCS file: bugs1610/pr323507/A.java >diff -N bugs1610/pr323507/A.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ bugs1610/pr323507/A.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,20 @@ >+public class A{ >+ >+ public A(){ >+ Object obj = new Object(); >+ D d = getConflictMethod(obj); >+ System.out.println("Worked"); >+ >+ } >+ >+ public D getConflictMethod (Object o){ >+ if(Detector.alwaysFalse()){ >+ return new C(o); >+ }else{ >+ return new B(o); >+ } >+ >+ } >+ >+ >+} >\ No newline at end of file >Index: bugs1610/pr323507/D.java >=================================================================== >RCS file: bugs1610/pr323507/D.java >diff -N bugs1610/pr323507/D.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ bugs1610/pr323507/D.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,3 @@ >+public interface D{ >+ public void dummyMethod(); >+} >\ No newline at end of file >Index: bugs1610/pr323507/B.java >=================================================================== >RCS file: bugs1610/pr323507/B.java >diff -N bugs1610/pr323507/B.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ bugs1610/pr323507/B.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,10 @@ >+public class B implements D{ >+ public B(Object o){ >+ ; >+ } >+ >+ public void dummyMethod(){ >+ ; >+ } >+ >+} >\ No newline at end of file >Index: bugs1610/pr323507/aop.xml >=================================================================== >RCS file: bugs1610/pr323507/aop.xml >diff -N bugs1610/pr323507/aop.xml >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ bugs1610/pr323507/aop.xml 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,9 @@ >+<aspectj> >+ <aspects> >+ <aspect name="Azpect"/> >+ </aspects> >+ >+ <weaver options="-verbose -XlazyTjp -showWeaveInfo"> >+ <include within="*"/> >+ </weaver> >+</aspectj> >\ No newline at end of file
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 Raw
Actions:
View
Attachments on
bug 323507
: 177324