issue_id int64 2.04k 425k | title stringlengths 9 251 | body stringlengths 4 32.8k ⌀ | status stringclasses 6
values | after_fix_sha stringlengths 7 7 | project_name stringclasses 6
values | repo_url stringclasses 6
values | repo_name stringclasses 6
values | language stringclasses 1
value | issue_url null | before_fix_sha null | pull_url null | commit_datetime timestamp[us, tz=UTC] | report_datetime timestamp[us, tz=UTC] | updated_file stringlengths 23 187 | chunk_content stringlengths 1 22k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | return EclipseShadow.makeShadow(this, location, context);
}
public Shadow makeShadow(ReferenceContext context) {
return EclipseShadow.makeShadow(this, (ASTNode) context, context);
}
public void addSourceTypeBinding(SourceTypeBinding binding, CompilationUnitDeclaration unit) {
TypeDeclaration decl = binding.... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | if (!binding.isRawType() && !binding.isGenericType() && name.getTypekind()==TypeKind.RAW) {
name.demoteToSimpleType();
}
EclipseSourceType t = new EclipseSourceType(name, this, binding, decl, unit);
if (binding.isGenericType()) {
UnresolvedType complexTx = fromBinding(binding);
ResolvedType cNa... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseFactory.java | for (int i = 0, length = memberTypes.length; i < length; i++) {
addSourceTypeBinding((SourceTypeBinding) memberTypes[i], unit);
}
}
public boolean isXSerializableAspects() {
return xSerializableAspects;
}
public ResolvedMember fromBinding(MethodBinding binding) {
return new ResolvedMemberImpl(Membe... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java | /*******************************************************************************
* Copyright (c) 2006 IBM
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http:www... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java | public void testDuplicateBridgeMethods_pr147801_1() { runTest("duplicate bridge methods");}
public void testPackageIgnoredForException_pr147701_1() { runTest("package for exception ignored");}
public void testPackageIgnoredForException_pr147701_2() { runTest("package for exception ignored - 2");}
public void test... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java | public void testLTWGeneratedAspectAbstractMethod_pr125480_2() { runTest("aop.xml aspect inheriting abstract method - code style");}
public void testCompletelyBrokenAopConcretization_pr142165_1() { runTest("broken concretization");}
public void testCompletelyBrokenAopConcretization_pr142165_2() { runTest("... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java | public void testReferencePCutInDeclareWarning_pr138215() { runTest("Reference pointcut fails inside @DeclareWarning");}
public void testReferencePCutInPerClause_pr138219() { runTest("Can't use a FQ Reference pointcut in any pointcut expression referenced by a per-clause");}
public void testReferencePCutInPerClause_... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java | + target.toLabelString(),method,target);
matches = AsmManager.getDefault().getRelationshipMap().get(method);
assertNotNull("'debit(java.lang.String,long)' should have some relationships but does not",matches);
assertTrue("'debit(java.lang.String,long)' should have one relationships but has "... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java | IHierarchy top = AsmManager.getDefault().getHierarchy();
IProgramElement twoArgsMethod = top.findElementForLabel(
top.getRoot(),IProgramElement.Kind.METHOD,"twoArgsMethod(int,java.lang.String)");
assertNotNull("Couldn't find 'twoArgsMethod(int,java.lang.String)' element in the tree",twoArgsMetho... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java | checkSignatureOfIPE("method()",IProgramElement.Kind.METHOD);
checkSignatureOfIPE("p()",IProgramElement.Kind.POINTCUT);
checkSignatureOfIPE("before(): p..",IProgramElement.Kind.ADVICE,"before()");
checkSignatureOfIPE("MyClass.method()",IProgramElement.Kind.INTER_TYPE_METHOD);
checkSignatureOfIPE("multiMethod... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java | assertEquals("expected two sources of relationships but only found "
+ asmRelMap.getEntries().size(),2,asmRelMap.getEntries().size());
for (Iterator iter = asmRelMap.getEntries().iterator(); iter.hasNext();) {
String sourceOfRelationship = (String) iter.next();
IProgramElement ipe = top.findElement... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java | + rel.getName(), "advised by", rel.getName());
List targets = rel.getTargets();
assertEquals("expected one target but found " + targets.size(),1,targets.size());
IProgramElement link = top.findElementForHandle((String)targets.get(0));
assertEquals("expected target 'MyBar.aj' but target " + link.... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java | IRelationshipMap relMap = AsmManager.getDefault().getRelationshipMap();
assertEquals("expected 3 entries in the relationship map but found "
+ relMap.getEntries().size(), 3, relMap.getEntries().size());
} finally {
World.createInjarHierarchy = true;
}
}
public void testPCDInClassAppearsInMod... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java | pcd = top.findElementForLabel(top.getRoot(),IProgramElement.Kind.POINTCUT,"pointcutInAspect()");
relationships = relMap.get(pcd);
assertNotNull("expected relationships for pointcut " + pcd.toLinkLabelString()
+ " but didn't", relationships);
} finally {
World.createInjarHierarchy = true;
}
}
... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java | l = ipe.getParameterTypes();
}
boolean eq = CharOperation.equals(((char[])l.get(0)),expectedParm.toCharArray());
assertTrue("expected parameter to be '" + expectedParm + "' but found '" +
new String(((char[])l.get(0))) + "'",eq);
}
private void checkSignatureOfIPE(String ipeLabel, IProgramE... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/NameMangler.java | /* *******************************************************************
* Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC).
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Eclipse Public License v1.0
* which accompanies this distri... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/NameMangler.java | public static final String CFLOW_STACK_TYPE = "org.aspectj.runtime.internal.CFlowStack";
public static final String CFLOW_COUNTER_TYPE="org.aspectj.runtime.internal.CFlowCounter";
public static final String SOFT_EXCEPTION_TYPE = "org.aspectj.lang.SoftException";
public static final String PERSINGLETON_FIELD_NAME =... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/NameMangler.java | public static String perTypeWithinFieldForTarget(UnresolvedType aspectType) {
return makeName(aspectType.getNameAsIdentifier(), "ptwAspectInstance");
}
public static String perTypeWithinLocalAspectOf(UnresolvedType aspectType) {
return makeName(aspectType.getNameAsIdentifier(), "localAspectOf");
}
publi... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/NameMangler.java | return makeName("inlineAccessMethod", aspectType.getNameAsIdentifier(),
objectType.getNameAsIdentifier(), name);
}
public static String inlineAccessMethodForFieldGet(String name, UnresolvedType objectType, UnresolvedType aspectType) {
return makeName("inlineAccessFieldGet", aspectType.getNameAsIdentifier(),
... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/NameMangler.java | * is declared onto
*/
public static String interFieldInterfaceField(UnresolvedType aspectType, UnresolvedType interfaceType, String name) {
return makeName("interField", aspectType.getNameAsIdentifier(),
interfaceType.getNameAsIdentifier(), name);
}
/**
* This instance method goes on the interface the f... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/NameMangler.java | return makeName("interFieldSetDispatch", aspectType.getNameAsIdentifier(),
onType.getNameAsIdentifier(), name);
}
/**
* This static method goes on the aspect that declares the inter-type field
*/
public static String interFieldGetDispatcher(UnresolvedType aspectType, UnresolvedType onType, String name) {
... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/NameMangler.java | aspectType.getNameAsIdentifier(),
classType.getNameAsIdentifier(),
name);
}
/**
* This method goes on the target type of the inter-type method. (and possibly the topmost-implemeters,
* if the target type is an interface)
*/
public static String interMethod(int modifiers, UnresolvedType aspectType, Unr... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/NameMangler.java | }
/**
* This static method goes on the declaring aspect of the inter-type constructor.
*/
public static String preIntroducedConstructor(
UnresolvedType aspectType,
UnresolvedType targetType)
{
return makeName("preInterConstructor", aspectType.getNameAsIdentifier(),
targetType.getNameAsIdentifier())... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/NameMangler.java | return makeName("superDispatch",
classType.getNameAsIdentifier(), name);
}
/**
* This static method goes on the target class of the inter-type method.
*/
public static String protectedDispatchMethod(UnresolvedType classType, String name)
{
return makeName("protectedDispatch",
classType.getNameAsIde... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/NameMangler.java | public static String makeName(String s1, String s2, String s3, String s4) {
return "ajc$" + s1 + "$" + s2 + "$" + s3 + "$" + s4;
}
public static String cflowStack(CrosscuttingMembers xcut) {
return makeName("cflowStack", Integer.toHexString(xcut.getCflowEntries().size()));
}
public static String cflowCounter(C... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | /* *******************************************************************
* Copyright (c) 2002 Contributors
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Eclipse Public License v1.0
* which accompanies this distribution and is available at
* http... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | import java.io.IOException;
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.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.Sorte... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | import org.aspectj.apache.bcel.generic.ObjectType;
import org.aspectj.apache.bcel.generic.PUSH;
import org.aspectj.apache.bcel.generic.RETURN;
import org.aspectj.apache.bcel.generic.Type;
import org.aspectj.apache.bcel.generic.annotation.AnnotationGen;
import org.aspectj.bridge.IMessage;
import org.aspectj.bridge.ISour... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | int highestLineNumber = 0;
private SortedMap inlinedFiles = new TreeMap();
private boolean regenerateGenericSignatureAttribute = false;
private BcelObjectType myType;
private ClassGen myGen;
private ConstantPoolGen constantPoolGen;
private World world;
private String packageName = null;
private ... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | int highestLineNumber;
int offset;
InlinedSourceFileInfo(int highestLineNumber) {
this.highestLineNumber = highestLineNumber;
}
}
void addInlinedSourceFileInfo(String fullpath, int highestLineNumber) {
Object o = inlinedFiles.get(fullpath);
if (o != null) {
InlinedSourceFileInfo info = (Inlined... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | }
} else {
inlinedFiles.put(fullpath, new InlinedSourceFileInfo(highestLineNumber));
}
}
void calculateSourceDebugExtensionOffsets() {
int i = roundUpToHundreds(highestLineNumber);
for (Iterator iter = inlinedFiles.values().iterator(); iter.hasNext();) {
InlinedSourceFileInfo element = (InlinedSourceF... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | private String getSourceDebugExtensionString() {
StringBuffer out = new StringBuffer();
String myFileName = getFileName();
out.append("SMAP\n");
out.append(myFileName);
out.append("\nAspectJ\n");
out.append("*S AspectJ\n");
out.append("*F\n");
out.append("1 ");
out.append(myFileName);
out.a... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | }
out.append("*L\n");
out.append("1#1,");
out.append(highestLineNumber);
out.append(":1,1\n");
i = 2;
for (Iterator iter = inlinedFiles.values().iterator(); iter.hasNext();) {
InlinedSourceFileInfo element = (InlinedSourceFileInfo) iter.next();
out.append("1#");
out.append(i++); out.append(','... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | UnresolvedType ut = UnresolvedType.forName(name);
ut.setNeedsModifiableDelegate(true);
LazyClassGen clazz = new LazyClassGen(BcelWorld.getBcelObjectType(world.resolve(ut)));
clazz.print(out);
out.println();
}
public int getNewGeneratedNameTag() {
return childCounter++;
... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | this.myType = myType;
this.world = myType.getResolvedTypeX().getWorld();
if (implementsSerializable(getType())) {
isSerializable = true;
hasSerialVersionUIDField = hasSerialVersionUIDField(getType());
ResolvedMember[] methods = getType().getDeclaredMethods();
for (int i = 0; i < met... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | Method[] methods = myGen.getMethods();
for (int i = 0; i < methods.length; i++) {
addMethodGen(new LazyMethodGen(methods[i], this));
}
}
public static boolean hasSerialVersionUIDField (ResolvedType type) {
ResolvedMember[] fields = type.getDeclaredFields();
for (int i = 0; ... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | return str.substring(0, index + 1) + getFileName();
}
}
public File getPackagePath(File root) {
String str = getInternalClassName();
int index = str.lastIndexOf('/');
if (index == -1)
return root;
return new File(root, str.substring(0, index));
}
/** Retu... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | methodGens.add(gen);
if (highestLineNumber < gen.highestLineNumber) highestLineNumber = gen.highestLineNumber;
}
public void addMethodGen(LazyMethodGen gen, ISourceLocation sourceLocation) {
addMethodGen(gen);
if (!gen.getMethod().isPrivate()) {
warnOnAddedMethod(gen.getMethod(),sourceLocation);
}
}
p... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | warnOnModifiedSerialVersionUID(sourceLocation,"added static initializer");
}
}
public void warnOnModifiedSerialVersionUID (ISourceLocation sourceLocation, String reason) {
if (isSerializable && !hasSerialVersionUIDField)
getWorld().getLint().needsSerialVersionUIDField.signal(
new String[] {
myType.getRes... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | if (field.getName().equals(name)) return field;
}
return null;
}
public List getAnnotations() {
return annotations;
}
private void writeBack(BcelWorld world) {
if (getConstantPoolGen().getSize() > Short.MAX_VALUE) {
reportClassTooBigProblem();
retu... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | if (!hasVersionAttribute)
myGen.addAttribute(BcelAttributes.bcelAttribute(new AjAttribute.WeaverVersionInfo(),getConstantPoolGen()));
if (myType != null && myType.getWeaverState() != null) {
myGen.addAttribute(BcelAttributes.bcelAttribute(
new AjAttribute.WeaverState(myType.getWeaverState()),
... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | }
fixupGenericSignatureAttribute();
}
/**
* When working with 1.5 generics, a signature attribute is attached to the type which indicates
* how it was declared. This routine ensures the signature attribute for what we are about
* to write out is correct. Basically its responsibilities are:... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | for (int i = 0; i < as.length; i++) {
Attribute attribute = as[i];
if (attribute.getName().equals("Signature")) sigAttr = (Signature)attribute;
}
}
boolean needAttribute = false;
if (sigAttr!=null) needAttribute = true;
if (!needAttribute) {
if (myType==null) {
boolean stop = true... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | if (tVars.length>0) {
signature.append("<");
for (int i = 0; i < tVars.length; i++) {
TypeVariable variable = tVars[i];
signature.append(variable.getSignature());
}
signature.append(">");
}
String supersig = myType.getSuperclass().getSignatureForAttribute();
signature.append(super... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | /**
*
*/
private void reportClassTooBigProblem() {
myGen = new ClassGen(myGen.getClassName(), myGen.getSuperclassName(),
myGen.getFileName(), myGen.getAccessFlags(), myGen.getInterfaceNames());
getWorld().showMessage(
IMessage.ERROR,
WeaverMessages.format(WeaverMessages.C... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | public JavaClass getJavaClass(BcelWorld world) {
writeBack(world);
return myGen.getJavaClass();
}
public byte [] getJavaClassBytesIncludingReweavable(BcelWorld world){
writeBack(world);
byte [] wovenClassFileData = myGen.getJavaClass().getBytes();
WeaverStateInfo wsi... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | if (typeX.getGenericType()!=null) typeX = typeX.getGenericType();
myGen.setSuperclassName(typeX.getName());
}
public String getSuperClassname() {
return myGen.getSuperclassName();
}
public ResolvedType getSuperClass() {
return myType.getSuperclass();
}
public String[] get... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | name = name.substring(index+1);
ret.add(new UnwovenClassFile.ChildClass(name, bytes));
}
return ret;
}
public String toString() {
return toShortString();
}
public String toShortString() {
String s =
org.aspectj.apache.bcel.classfile.Utility.accessToString(myGen.getAccessFlags(), true... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | element.printOne(out);
if (iter.hasNext()) out.println();
}
}
private void printOne(PrintStream out) {
out.print(toShortString());
out.print(" extends ");
out.print(
org.aspectj.apache.bcel.classfile.Utility.compactClassName(
myGen.getSuper... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | }
List methodGens = getMethodGens();
for (Iterator iter = methodGens.iterator(); iter.hasNext();) {
LazyMethodGen gen = (LazyMethodGen) iter.next();
if (isEmptyClinit(gen)) continue;
gen.print(out, (myType != null ? myType.getWeaverVersionAttribute() : We... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | public String getName() {
return myGen.getClassName();
}
public boolean isWoven() {
return myType.getWeaverState() != null;
}
public boolean isReweavable() {
if (myType.getWeaverState()==null) return true;
return myType.getWeaverState().isReweavable();
}
public Set getAspectsAffectingTy... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | LazyMethodGen gen = (LazyMethodGen) i.next();
if (gen.getName().equals("<clinit>")) return gen;
}
LazyMethodGen clinit = new LazyMethodGen(
Modifier.STATIC,
Type.VOID,
"<clinit>",
new Type[0],
CollectionUtil.NO_STRINGS,
this);
clinit.getB... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | getStaticInitializer().getBody().insert(Utility.createInvoke(getFactory(), ajcClinit));
return ajcClinit;
}
Map tjpFields = new HashMap();
public static final ObjectType proceedingTjpType =
new ObjectType("org.aspectj.lang.ProceedingJoinPoint");
public static final Objec... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | LazyMethodGen encMethod = shadow.getEnclosingMethod();
boolean shadowIsInAroundAdvice = false;
if (encMethod!=null && encMethod.getName().startsWith(NameMangler.PREFIX+"around")) {
shadowIsInAroundAdvice = true;
}
if (getType().isInterface() || shadowIsInAroundAdvice) {
modifiers |= Modifier.PUBLIC;
... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | private void addAjcInitializers() {
if (tjpFields.size() == 0 && !serialVersionUIDRequiresInitialization) return;
InstructionList il = null;
if (tjpFields.size()>0) {
il = initializeAllTjps();
}
if (serialVersionUIDRequiresInitialization) {
if (il==null) {
il= ... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | list.append(new PUSH(getConstantPoolGen(), getClassName()));
list.append(fact.createInvoke("java.lang.Class", "forName", classType,
new Type[] {Type.STRING}, Constants.INVOKESTATIC));
list.append(fact.createInvoke(factoryType.getClassName(), "<init>",
Type.VOID, new Type[] {T... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | return list;
}
private void initializeTjp(InstructionFactory fact, InstructionList list,
Field field, BcelShadow shadow)
{
Member sig = shadow.getSignature();
list.append(InstructionFactory.createLoad(factoryType, 0));
list.append(new PUSH(g... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | list.append(new PUSH(getConstantPoolGen(),sig.getName()));
list.append(new PUSH(getConstantPoolGen(),makeString(sig.getDeclaringType())));
list.append(new PUSH(getConstantPoolGen(),makeString(sig.getParameterTypes())));
list.append(new PUSH(getConstantPoolGen(),makeString(sig.getParameterNames(w))));
... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | list.append(new PUSH(getConstantPoolGen(),makeString(sig.getParameterNames(w))));
list.append(fact.createInvoke(factoryType.getClassName(),
sig.getSignatureMakerName(),
new ObjectType(sig.getSignatureType()),
new Type[] { Type.STRING, Type.STRING, Type.STRING },
Constants.INVOKEVIR... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | Constants.INVOKEVIRTUAL));
}
} else if(sig.getKind().equals(Member.FIELD)) {
BcelWorld w = shadow.getWorld();
list.append(new PUSH(getConstantPoolGen(),makeString(sig.getModifiers(w))));
list.append(new PUSH(getConstantPoolGen(),sig.getName()));
list.append(new PUSH(getConstantPo... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | list.append(new PUSH(getConstantPoolGen(),makeString(sig.getDeclaringType())));
list.append(fact.createInvoke(factoryType.getClassName(),
sig.getSignatureMakerName(),
new ObjectType(sig.getSignatureType()),
new Type[] { Type.STRING, Type.STRING },
Constants.INVOKEVIRTUAL));
} ... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | factoryMethod = "makeSJP";
} else if (enclosingStaticTjpType.equals(field.getType())) {
factoryMethod = "makeESJP";
} else {
throw new Error("should not happen");
}
list.append(fact.createInvoke(factoryType.getClassName(),
factoryMethod, field.getType()... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | protected String makeString(UnresolvedType[] types) {
if (types == null) return "";
StringBuffer buf = new StringBuffer();
for (int i = 0, len=types.length; i < len; i++) {
buf.append(makeString(types[i]));
buf.append(':');
}
return buf.toString();
}
protected String... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | }
private void addField(Field field) {
myGen.addField(field);
}
public void replaceField(Field oldF, Field newF){
myGen.removeField(oldF);
myGen.addField(newF);
}
public void addField(Field field, ISourceLocation sourceLocation) {
addField(field);
if (!(field.isPrivate()
&& (field.isStatic() || f... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | public LazyMethodGen getLazyMethodGen(String name, String signature) {
return getLazyMethodGen(name,signature,false);
}
public LazyMethodGen getLazyMethodGen(String name, String signature,boolean allowMissing) {
for (Iterator i = methodGens.iterator(); i.hasNext();) {
LazyMethodGen gen = (LazyMethodGen) i.ne... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | AnnotationGen gen = agens[i];
if (t.equals(UnresolvedType.forSignature(gen.getTypeSignature()))) return true;
}
return false;
}
public void addAnnotation(Annotation a) {
if (!hasAnnotation(UnresolvedType.forSignature(a.getTypeSignature()))) {
annotations.add(new AnnotationGen(a,getConstantPool... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java | return implementsSerializable(superType);
}
return false;
}
public boolean isAtLeastJava5() {
return (myGen.getMajor()>=Constants.MAJOR_1_5);
}
/**
* Return the next available field name with the specified 'prefix', e.g.
* for prefix 'class$' where class$0, class$1 exist then return class$2
*/
public... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | /* *******************************************************************
* Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC).
* All rights reserved.
* This program and the accompanying materials are made available
* under the terms of the Eclipse Public License v1.0
* which accompanies this distri... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | import java.util.ListIterator;
import java.util.Map;
import java.util.Properties;
import java.util.Set;
import java.util.Stack;
import org.aspectj.apache.bcel.Constants;
import org.aspectj.apache.bcel.classfile.Attribute;
import org.aspectj.apache.bcel.classfile.ConstantPool;
import org.aspectj.apache.bcel.classfile.Me... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | import org.aspectj.apache.bcel.generic.Type;
import org.aspectj.apache.bcel.generic.annotation.AnnotationGen;
import org.aspectj.bridge.IMessage;
import org.aspectj.bridge.ISourceLocation;
import org.aspectj.bridge.MessageUtil;
import org.aspectj.weaver.AjAttribute;
import org.aspectj.weaver.AnnotationX;
import org.asp... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | private int accessFlags;
private Type returnType;
private final String name;
private Type[] argumentTypes;
private String[] declaredExceptions;
private InstructionList body;
private Attribute[] attributes;
private List ne... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | * Whats the difference between a Tag and a Gen? A Tag is more lightweight, it doesn't know which
* instructions it targets, it relies on the instructions targetting *it* - this reduces the amount
* of targeter manipulation we have to do.
*
* Because this *could* go wrong - it passes all our tests,... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | public ResolvedType definingType = null;
public LazyMethodGen(
int accessFlags,
Type returnType,
String name,
Type[] paramTypes,
String[] declaredExceptions,
LazyClassGen enclosingClass)
{
this.memberView = null;
this.accessFlags = accessFla... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | if (memberView != null && isAdviceMethod()) {
if (enclosingClass.getType().isAnnotationStyleAspect()) {
this.canInline = false;
}
}
}
private int calculateMaxLocals() {
int ret = 0;
if (!Modifier.isStatic(accessFlags)) ret+... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | }
this.memberView = new BcelMethod(enclosingClass.getBcelObjectType(), m);
this.accessFlags = m.getAccessFlags();
this.name = m.getName();
if (memberView != null && isAdviceMethod()) {
if (enclosingClass.getType().isAnnotationStyleAspect())... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | public int getDeclarationOffset() {
if (hasDeclaredLineNumberInfo()) {
return memberView.getDeclarationOffset();
} else {
return 0;
}
}
public void addAnnotation(AnnotationX ax) {
initialize();
if (memberView==null) {
if (newAnnotations==null) newAnnotations = new Arra... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | return memberView.hasAnnotation(annotationTypeX);
}
return memberView.hasAnnotation(annotationTypeX);
}
private void initialize() {
if (returnType != null) return;
if (!checkedXsetOption) {
Properties p = enclosingClass.getWorld().getExtraConfiguration();
if (p!=null)... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | if (gen.isAbstract() || gen.isNative()) {
body = null;
} else {
body = gen.getInstructionList();
unpackHandlers(gen);
if (avoidUseOfBcelGenObjects) {
ensureAllLineNumberSetup(gen);
highestLineNumber = gen.getHighestlinenumber();
} else ... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | if (exns != null) {
int len = exns.length;
int priority = len - 1;
for (int i = 0; i < len; i++, priority--) {
CodeExceptionGen exn = exns[i];
InstructionHandle start =
Range.genStart(
body,
... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | if (ExceptionRange.isExceptionStart(ih.getPrev())) {
ih = ih.getPrev();
} else {
return ih;
}
}
}
private InstructionHandle getOutermostExceptionEnd(InstructionHandle ih) {
while (true) {
if (ExceptionRange.isExceptionEnd(ih.getNext())) {
ih = ih.getNext();
} else {
return ih;
}... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | }
}
if (lr != null) {
ih.addTargeter(lr);
}
}
gen.removeLineNumbers();
}
/**
* On entry to this method we have a method whose instruction stream contains a few instructions
* that have line numbers assigned to them (LineNumberTags). ... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | ih.addTargeter(lr);
}
}
}
private void unpackLocals(MethodGen gen) {
Set locals = new HashSet();
for (InstructionHandle ih = body.getStart(); ih != null; ih = ih.getNext()) {
InstructionTargeter[] targeters = ih.getTargeters();
List ends = new ArrayLis... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | public int allocateLocal(Type type) {
return allocateLocal(type.getSize());
}
public int allocateLocal(int slots) {
int max = getMaxLocals();
setMaxLocals(max + slots);
return max;
}
public Method getMethod() {
if (savedMethod != null) return savedMethod;
... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | public void markAsChanged() {
initialize();
savedMethod = null;
}
public String toString() {
WeaverVersionInfo weaverVersion = enclosingClass.getBcelObjectType().getWeaverVersionAttribute();
return toLongString(weaverVersion);
}
public String toShortString() {
String access = o... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | buf.append(
org.aspectj.apache.bcel.classfile.Utility.signatureToString(
argumentTypes[0].getSignature(),
true));
for (int i = 1; i < argumentTypes.length; i++) {
buf.append(", ");
buf.append(
org.aspectj.apache.bcel.classfile.Utility.signatureToString(
argumentTypes[i].getSi... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | print(new PrintStream(s),weaverVersion);
return new String(s.toByteArray());
}
public void print(WeaverVersionInfo weaverVersion) {
print(System.out,weaverVersion);
}
public void print(PrintStream out, WeaverVersionInfo weaverVersion) {
out.print(" " + toShortString());
... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | Map prefixMap = new HashMap();
Map suffixMap = new HashMap();
Map labelMap = new HashMap();
InstructionList body;
PrintStream out;
ConstantPool pool;
List ranges;
BodyPrinter(PrintStream out) {
this.pool = enclosingClass.getConstantPoolGen().getConstan... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | for (int i = targeters.length - 1; i >= 0; i--) {
InstructionTargeter t = targeters[i];
if (t instanceof ExceptionRange) {
ExceptionRange r = (ExceptionRange) t;
if (r.getStart() == ih) {... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | }
}
printing
void print() {
int depth = 0;
int currLine = -1;
bodyPrint:
for (InstructionHandle ih = body.getStart(); ih != null; ih = ih.getNext()) {
if (Range.isRangeHandle(ih)) {
Range r = Range.getRan... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | }
}
}
}
void printRangeString(Range r, int depth) {
printDepth(depth);
out.println(getRangeString(r, labelMap));
}
String getRangeString(Range r, Map labelMap) {
if (r instanceof ExceptionRange) {
... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | pad(space);
} else {
space = Math.max(space - (s.length() + 2), 0);
pad(space);
out.print(s);
out.print(": ");
}
}
void printInstruction(InstructionHandle h, int depth) {
printDepth(depth);
pr... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | out.println(labelMap.get(targets[i]));
}
printDepth(depth);
printLabel(null, depth);
out.print(" ");
out.print("default: \t");
out.print(labelMap.get(defaultTarget));
} else if (inst instanceof BranchInstruction... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | for (int i = 0; i < size; i++) {
out.print(" ");
}
}
}
static LocalVariableTag getLocalVariableTag(
InstructionHandle ih,
int index)
{
InstructionTargeter[] targeters = ih.getTargeters();
if (targeters == null) return null;
for (in... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | return ((LineNumberTag)t).getLineNumber();
}
}
return prevLine;
}
public boolean isStatic() {
return Modifier.isStatic(getAccessFlags());
}
public boolean isAbstract() {
return Modifier.isAbstract(getAccessFlags());
}
public boolean isBridgeMethod() {
return (getAccess... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | }
public int getAccessFlags() {
return accessFlags;
}
public int getAccessFlagsWithoutSynchronized() {
if (isSynchronized()) return accessFlags - Modifier.SYNCHRONIZED;
return accessFlags;
}
public boolean isSynchronized() {
return (accessFlags & Modifier.SYNCHRO... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | public Type getReturnType() {
initialize();
return returnType;
}
public void setMaxLocals(int maxLocals) {
this.maxLocals = maxLocals;
}
public InstructionList getBody() {
markAsChanged();
return body;
}
public boolean hasBody() {
if (savedMeth... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | public MethodGen pack() {
killNops();
int flags = getAccessFlags();
if (enclosingClass.getWorld().isJoinpointSynchronizationEnabled()) {
flags = getAccessFlagsWithoutSynchronized();
}
MethodGen gen =
new MethodGen(
flags,
getReturnType(),
... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | if (memberView!=null && memberView.getAnnotations()!=null && memberView.getAnnotations().length!=0) {
AnnotationX[] ans = memberView.getAnnotations();
for (int i = 0, len = ans.length; i < len; i++) {
Annotation a= ans[i].getBcelAnnotation();
gen.addAnnotation(new AnnotationGen(a,gen.getCon... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | InstructionHandle start = null;
InstructionHandle end = null;
}
/** fill the newly created method gen with our body,
* inspired by InstructionList.copy()
*/
public void packBody(MethodGen gen) {
InstructionList fresh = gen.getInstructionList();
Map map = copyAllInstructi... |
147,711 | Bug 147711 Add an option to generate aj-synthetics with true synthetic flag | In a number of cases tools are getting confused over generated aj members that are "aj-synthetic" but not marked with the synthetic attribute (because in the past, this has upset other tools). The most recent example was a JAXB posting on the list - by having a perthis() clause in an aspect that matched a type with JAX... | resolved fixed | c9f311a | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2006-06-24T11:36:59Z | 2006-06-19T12:26:40Z | weaver/src/org/aspectj/weaver/bcel/LazyMethodGen.java | oldInstructionHandle = oldInstructionHandle.getNext();
} else {
Instruction oldInstruction = oldInstructionHandle.getInstruction();
Instruction newInstruction = newInstructionHandle.getInstruction();
if (oldInstruction instanceof BranchInstruct... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.