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 40231 Details for
Bug 137235
AJC can't resolve non-jar classpath entries
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
loadtime module patch
bug137235.loadtime.patch.txt (text/plain), 2.45 KB, created by
Ron Bodkin
on 2006-05-03 11:48:13 EDT
(
hide
)
Description:
loadtime module patch
Filename:
MIME Type:
Creator:
Ron Bodkin
Created:
2006-05-03 11:48:13 EDT
Size:
2.45 KB
patch
obsolete
>Index: testsrc/org/aspectj/weaver/loadtime/WeavingURLClassLoaderTest.java >=================================================================== >RCS file: /home/technology/org.aspectj/modules/loadtime/testsrc/org/aspectj/weaver/loadtime/WeavingURLClassLoaderTest.java,v >retrieving revision 1.3 >diff -u -r1.3 WeavingURLClassLoaderTest.java >--- testsrc/org/aspectj/weaver/loadtime/WeavingURLClassLoaderTest.java 14 Nov 2005 14:43:59 -0000 1.3 >+++ testsrc/org/aspectj/weaver/loadtime/WeavingURLClassLoaderTest.java 3 May 2006 15:46:59 -0000 >@@ -30,8 +30,6 @@ > /** > * @author websterm > * >- * To change the template for this generated type comment go to >- * Window>Preferences>Java>Code Generation>Code and Comments > */ > public class WeavingURLClassLoaderTest extends TestCase { > >@@ -432,6 +430,35 @@ > } > } > >+ public void testWeavingURLClassLoaderOddJars() throws Exception { >+ URL classes = FileUtil.getFileURL(new File(TEST_BASE+"/test.jar/main.file")); >+ URL aspectjrt = FileUtil.getFileURL(new File(ASPECTJRT)); >+ URL aspects = FileUtil.getFileURL(new File(TEST_BASE+"/aspectNoExt")); >+ URL[] classURLs = new URL[] { aspects, classes, aspectjrt }; >+ URL[] aspectURLs = new URL[] { aspects }; >+ WeavingURLClassLoader loader = new WeavingURLClassLoader(classURLs,aspectURLs,getClass().getClassLoader()); >+ >+ Class clazz = loader.loadClass("packag.Main"); >+ invokeMain(clazz,new String[] { }); >+ } >+ >+ public void testWeavingURLClassLoaderMissingJars() throws Exception { >+ try { >+ URL classes = FileUtil.getFileURL(new File(TEST_BASE+"/test.jar/main.file")); >+ URL aspectjrt = FileUtil.getFileURL(new File(ASPECTJRT)); >+ URL aspects = FileUtil.getFileURL(new File(TEST_BASE+"/MissingFile")); >+ URL[] classURLs = new URL[] { aspects, classes, aspectjrt }; >+ URL[] aspectURLs = new URL[] { aspects }; >+ WeavingURLClassLoader loader = new WeavingURLClassLoader(classURLs,aspectURLs,getClass().getClassLoader()); >+ >+ Class clazz = loader.loadClass("packag.Main"); >+ invokeMain(clazz,new String[] { }); >+ fail("Should reject bad aspect MissingFile"); >+ } catch (AbortException ae) { >+ assertTrue("Unexpected cause: "+ae.getMessage(), ae.getMessage().indexOf("bad aspect library")!=-1); >+ } >+ } >+ > private void doTestZipAspects(String aspectLib) throws Exception { > File classZip = new File(TEST_BASE + "/main.zip"); > File zipLib = new File(aspectLib);
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
Flags:
aclement
:
iplog+
Actions:
View
|
Diff
Attachments on
bug 137235
:
38800
|
40157
|
40158
|
40225
|
40226
|
40227
|
40228
|
40229
|
40230
| 40231 |
40233