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 22410 Details for
Bug 95344
own type of an aspect unit cannot be resolved
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
error detecting patch
weaver.txt (text/plain), 1.75 KB, created by
Andrew J Huff
on 2005-06-06 05:45:53 EDT
(
hide
)
Description:
error detecting patch
Filename:
MIME Type:
Creator:
Andrew J Huff
Created:
2005-06-06 05:45:53 EDT
Size:
1.75 KB
patch
obsolete
>Index: src/org/aspectj/weaver/bcel/BcelWeaver.java >=================================================================== >RCS file: /home/technology/org.aspectj/modules/weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java,v >retrieving revision 1.53 >diff -u -r1.53 BcelWeaver.java >--- src/org/aspectj/weaver/bcel/BcelWeaver.java 17 May 2005 08:29:18 -0000 1.53 >+++ src/org/aspectj/weaver/bcel/BcelWeaver.java 6 Jun 2005 09:45:56 -0000 >@@ -974,6 +974,18 @@ > UnwovenClassFile clf = (UnwovenClassFile) iter.next(); > typesToProcess.add(clf.getClassName()); > } >+ >+ String duplicate = containsDuplicates(typesToProcess); >+ if (duplicate != null){ >+ System.err.println("Error: duplicate type \"" + duplicate + "\""); >+ System.err.println(); >+ System.err.println("This may be caused by bug 98120 in jdt."); >+ System.err.println("If so the workaround is to not put dollar signs in type names, " >+ + "If there wasn't\na dollar sign in the duplicate type please report this as a bug in AspectJ" >+ + " and\ninclude this message in the bug report."); >+ return new ArrayList(); >+ } >+ > while (typesToProcess.size()>0) { > weaveParentsFor(typesToProcess,(String)typesToProcess.get(0)); > } >@@ -1489,4 +1501,20 @@ > public World getWorld() { > return world; > } >+ >+ public static String containsDuplicates(List l){ >+ // this method should be somewhere else >+ // returns the first duplicate object in l >+ for (int i = 0; i < l.size(); i++){ >+ String s1 = (String)l.get(i); >+ for (int j = i+1; j < l.size(); j++){ >+ String s2 = (String)l.get(j); >+ if (s1.equals(s2)){ >+ return s1; >+ } >+ } >+ } >+ return null; >+ } >+ > }
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 95344
:
21199
| 22410