]> source.dussan.org Git - aspectj.git/commitdiff
don't forget the checked exceptions
authorjhugunin <jhugunin>
Wed, 15 Jan 2003 05:06:28 +0000 (05:06 +0000)
committerjhugunin <jhugunin>
Wed, 15 Jan 2003 05:06:28 +0000 (05:06 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseBinaryType.java

index 4fb4f54a6c89adceb62713f16b147a03b09ee742..a214f9de6bb19baabf431b1c967a4a8db0acf454 100644 (file)
@@ -61,10 +61,14 @@ public class EclipseBinaryType extends EclipseObjectType {
        }
 
        private ResolvedMember copyResolvedMember(ResolvedMember in) {
-               return new ResolvedMember(
+               ResolvedMember ret = new ResolvedMember(
                        in.getKind(), forceTypeX(in.getDeclaringType()), in.getModifiers(),
                        forceTypeX(in.getReturnType()), in.getName(),
                        forceTypeXs(in.getParameterTypes()));
+               ret.setPosition(in.getStart(), in.getEnd());
+               ret.setSourceContext(in.getSourceContext());
+               ret.setCheckedExceptions(forceTypeXs(in.getExceptions()));
+               return ret;
        }
 
        private TypeX forceTypeX(TypeX typeX) {