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 5792 Details for
Bug 41536
Debug information getting lost in weaver ?
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Fix for missing debug info
41536.txt (text/plain), 3.77 KB, created by
Andrew Clement
on 2003-08-18 08:39:12 EDT
(
hide
)
Description:
Fix for missing debug info
Filename:
MIME Type:
Creator:
Andrew Clement
Created:
2003-08-18 08:39:12 EDT
Size:
3.77 KB
patch
obsolete
>Index: src/org/aspectj/weaver/bcel/LazyMethodGen.java >=================================================================== >RCS file: /home/technology/org.aspectj/modules/weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java,v >retrieving revision 1.16 >diff -u -r1.16 LazyMethodGen.java >--- src/org/aspectj/weaver/bcel/LazyMethodGen.java 8 Aug 2003 01:23:31 -0000 1.16 >+++ src/org/aspectj/weaver/bcel/LazyMethodGen.java 18 Aug 2003 12:38:32 -0000 >@@ -17,6 +17,8 @@ > import java.io.PrintStream; > import java.lang.reflect.Modifier; > import java.util.ArrayList; >+import java.util.Collections; >+import java.util.Comparator; > import java.util.HashMap; > import java.util.HashSet; > import java.util.Iterator; >@@ -254,10 +256,8 @@ > LocalVariableGen lng = (LocalVariableGen) targeter; > LocalVariableTag lr = new LocalVariableTag(BcelWorld.fromBcel(lng.getType()), lng.getName(), lng.getIndex()); > if (lng.getStart() == ih) { >- lng.setStart(null); > locals.add(lr); > } else { >- lng.setEnd(null); > ends.add(lr); > } > } >@@ -833,15 +833,10 @@ > } > } else if (targeter instanceof LocalVariableTag) { > LocalVariableTag lvt = (LocalVariableTag) targeter; >- if (i instanceof LocalVariableInstruction) { >- int index = ((LocalVariableInstruction)i).getIndex(); >- if (lvt.getSlot() == index) { >- if (localVariableStarts.get(lvt) == null) { >- localVariableStarts.put(lvt, jh); >- } >- localVariableEnds.put(lvt, jh); >- } >+ if (localVariableStarts.get(lvt) == null) { >+ localVariableStarts.put(lvt, jh); > } >+ localVariableEnds.put(lvt, jh); > } > } > } >@@ -871,7 +866,35 @@ > > Map duplicatedLocalMap = new HashMap(); > >- for (Iterator iter = localVariableStarts.keySet().iterator(); iter.hasNext(); ) { >+ // Reverse sort these keys >+ List keys = new ArrayList(); >+ >+ keys.addAll(localVariableStarts.keySet()); >+// System.err.println("Keys for local variable tags"); >+// for (int i = 0;i <keys.size();i++) { >+// System.err.println("Before sort: #"+i+"="+keys.get(i)); >+// } >+ Collections.sort(keys,new Comparator() { >+ public int compare(Object a,Object b) { >+ LocalVariableTag taga = (LocalVariableTag)a; >+ LocalVariableTag tagb = (LocalVariableTag)b; >+ if (taga.getName().startsWith("arg")) { >+ if (tagb.getName().startsWith("arg")) { >+ return -taga.getName().compareTo(tagb.getName()); >+ } else { >+ return 1; // Whatever tagb is, it must come out before 'arg' >+ } >+ } else if (tagb.getName().startsWith("arg")) { >+ return -1; // Whatever taga is, it must come out before 'arg' >+ } else { >+ return -taga.getName().compareTo(tagb.getName()); >+ } >+ }}); >+// for (int i = 0;i <keys.size();i++) { >+// System.err.println("After sort: #"+i+"="+keys.get(i)); >+// } >+ >+ for (Iterator iter = keys.iterator(); iter.hasNext(); ) { > LocalVariableTag tag = (LocalVariableTag) iter.next(); > // have we already added one with the same slot number and start location? > // if so, just continue.
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 41536
: 5792