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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
244,321 | Bug 244321 I cannot aspect code written in SJPP-based encoding | null | resolved fixed | d5c2ead | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-08-29T20:08:59Z | 2008-08-15T17:06:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | }
public Object getCustomMungerFactory() {
return customMungerFactory;
}
private void initBcelWorld(IMessageHandler handler) throws IOException {
List cp =
buildConfig.getFullClasspath();
BcelWorld bcelWorld = new BcelWorld(cp, handler, null);
bcelWorld.setBehaveInJava5Way(buildConfig.get... |
244,321 | Bug 244321 I cannot aspect code written in SJPP-based encoding | null | resolved fixed | d5c2ead | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-08-29T20:08:59Z | 2008-08-15T17:06:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | } else {
bcelWorld.getLint().setAll(buildConfig.getLintMode());
}
if (buildConfig.getLintSpecFile() != null) {
bcelWorld.getLint().setFromProperties(buildConfig.getLintSpecFile());
}
for (Iterator i = buildConfig.getAspectpath().iterator(); i.hasNext();) {
File f = (File) i.next();
if (!f.exists(... |
244,321 | Bug 244321 I cannot aspect code written in SJPP-based encoding | null | resolved fixed | d5c2ead | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-08-29T20:08:59Z | 2008-08-15T17:06:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | for (Iterator i = buildConfig.getInpath().iterator(); i.hasNext(); ) {
File inPathElement = (File)i.next();
if (!inPathElement.isDirectory()) {
List unwovenClasses = bcelWeaver.addJarFile(inPathElement,outputDir,true);
state.recordBinarySource(inPathElement.getPath(),unwovenClasses);
} else {... |
244,321 | Bug 244321 I cannot aspect code written in SJPP-based encoding | null | resolved fixed | d5c2ead | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-08-29T20:08:59Z | 2008-08-15T17:06:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | handler.handleMessage(message);
}
}
public World getWorld() {
return getBcelWorld();
}
void addAspectClassFilesToWeaver(List addedClassFiles) throws IOException {
for (Iterator i = addedClassFiles.iterator(); i.hasNext(); ) {
UnwovenClassFile classFile = (UnwovenClassFile) i.next();
getWeaver().addC... |
244,321 | Bug 244321 I cannot aspect code written in SJPP-based encoding | null | resolved fixed | d5c2ead | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-08-29T20:08:59Z | 2008-08-15T17:06:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | }
/*
* Build the set of compilation source units
*/
public CompilationUnit[] getCompilationUnits(String[] filenames, String[] encodings) {
int fileCount = filenames.length;
CompilationUnit[] units = new CompilationUnit[fileCount];
String defaultEncoding = buildConfig.getOptions().defaultEncoding;
if... |
244,321 | Bug 244321 I cannot aspect code written in SJPP-based encoding | null | resolved fixed | d5c2ead | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-08-29T20:08:59Z | 2008-08-15T17:06:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | return System.getProperty("user.dir");
}
public void performCompilation(Collection files) {
if (progressListener != null) {
compiledCount=0;
sourceFileCount = files.size();
progressListener.setText("compiling source files");
}
String[] filenames = new String[files.size()];
String[] enco... |
244,321 | Bug 244321 I cannot aspect code written in SJPP-based encoding | null | resolved fixed | d5c2ead | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-08-29T20:08:59Z | 2008-08-15T17:06:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | environment = new StatefulNameEnvironment(environment, state.getClassNameToFileMap(),state);
}
org.aspectj.ajdt.internal.compiler.CompilerAdapter.setCompilerAdapterFactory(this);
org.aspectj.org.eclipse.jdt.internal.compiler.Compiler compiler =
new org.aspectj.org.eclipse.jdt.internal.compiler.Compiler(env... |
244,321 | Bug 244321 I cannot aspect code written in SJPP-based encoding | null | resolved fixed | d5c2ead | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-08-29T20:08:59Z | 2008-08-15T17:06:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | return new IIntermediateResultsRequestor() {
public void acceptResult(InterimCompilationResult result) {
if (progressListener != null) {
compiledCount++;
progressListener.setProgress((compiledCount/2.0)/sourceFileCount);
progressListener.setText("compiled: " + result.fileName());
}
state.n... |
244,321 | Bug 244321 I cannot aspect code written in SJPP-based encoding | null | resolved fixed | d5c2ead | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-08-29T20:08:59Z | 2008-08-15T17:06:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | filename = filename.replace('/', File.separatorChar) + ".class";
try {
if (buildConfig.getOutputJar() == null) {
writeDirectoryEntry(unitResult, classFile,filename);
} else {
writeZipEntry(classFile,filename);
}
if (shouldAddAspectName) addAspectName(classname, unitResu... |
244,321 | Bug 244321 I cannot aspect code written in SJPP-based encoding | null | resolved fixed | d5c2ead | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-08-29T20:08:59Z | 2008-08-15T17:06:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | CompilationResult unitResult,
ClassFile classFile,
String filename)
throws IOException {
File destinationPath = buildConfig.getOutputDir();
if (buildConfig.getCompilationResultDestinationManager() != null) {
destinationPath =
buildConfig.getCompilationResultDestinationManager().getOu... |
244,321 | Bug 244321 I cannot aspect code written in SJPP-based encoding | null | resolved fixed | d5c2ead | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-08-29T20:08:59Z | 2008-08-15T17:06:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | }
private void addAspectName (String name, char[] fileContainingAspect) {
BcelWorld world = getBcelWorld();
ResolvedType type = world.resolve(name);
if (type.isAspect()) {
if (state.getAspectNamesToFileNameMap() == null) {
state.initializeAspectNamesToFileNameMap();
}
if (!state.... |
244,321 | Bug 244321 I cannot aspect code written in SJPP-based encoding | null | resolved fixed | d5c2ead | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-08-29T20:08:59Z | 2008-08-15T17:06:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | (buildConfig.isIncrementalMode() || buildConfig.isIncrementalFileMode());
}
handler.reset();
}
String makeClasspathString(AjBuildConfig buildConfig) {
if (buildConfig == null || buildConfig.getFullClasspath() == null) return "";
StringBuffer buf = new StringBuffer();
boolean first = true;
for (Iterator ... |
244,321 | Bug 244321 I cannot aspect code written in SJPP-based encoding | null | resolved fixed | d5c2ead | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-08-29T20:08:59Z | 2008-08-15T17:06:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | if (buildConfig == null || buildConfig.getFullClasspath() == null) return "no classpath specified";
String ret = null;
for (Iterator it = buildConfig.getFullClasspath().iterator(); it.hasNext(); ) {
File p = new File( (String)it.next() );
if (p.isFile() && p.getName().startsWith("aspectjrt") && p.ge... |
244,321 | Bug 244321 I cannot aspect code written in SJPP-based encoding | null | resolved fixed | d5c2ead | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-08-29T20:08:59Z | 2008-08-15T17:06:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | continue;
}
} catch (IOException ioe) {
ret = "bad jar file found in " + p.getAbsolutePath() + " error: " + ioe;
}
return null;
} else {
}
}
if (ret != null) return ret;
return "couldn't find aspectjrt.jar on classpath, checked: " + makeClasspathString(buildConfig);
}
... |
244,321 | Bug 244321 I cannot aspect code written in SJPP-based encoding | null | resolved fixed | d5c2ead | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-08-29T20:08:59Z | 2008-08-15T17:06:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | }
public IProgressListener getProgressListener() {
return progressListener;
}
public void setProgressListener(IProgressListener progressListener) {
this.progressListener = progressListener;
}
/* (non-Javadoc)
* @see org.aspectj.ajdt.internal.compiler.AjCompiler.IOutputClassFileNameProvider#getOutput... |
244,321 | Bug 244321 I cannot aspect code written in SJPP-based encoding | null | resolved fixed | d5c2ead | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-08-29T20:08:59Z | 2008-08-15T17:06:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | /* (non-Javadoc)
* @see org.eclipse.jdt.internal.compiler.ICompilerAdapterFactory#getAdapter(org.eclipse.jdt.internal.compiler.Compiler)
*/
public ICompilerAdapter getAdapter(org.aspectj.org.eclipse.jdt.internal.compiler.Compiler forCompiler) {
populateCompilerOptionsFromLintSettings(forCompiler);
AjProblem... |
244,321 | Bug 244321 I cannot aspect code written in SJPP-based encoding | null | resolved fixed | d5c2ead | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-08-29T20:08:59Z | 2008-08-15T17:06:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | progressListener,
this,
this,
state.getBinarySourceMap(),
buildConfig.isTerminateAfterCompilation(),
buildConfig.getProceedOnError(),
buildConfig.isNoAtAspectJAnnotationProcessing(),
state);
} else {
return new AjCompilerAdapter(forCompiler,batchCompile,getBcelWorld(),getWeav... |
244,321 | Bug 244321 I cannot aspect code written in SJPP-based encoding | null | resolved fixed | d5c2ead | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-08-29T20:08:59Z | 2008-08-15T17:06:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | IMessage.Kind swallowedExceptionKind = world.getLint().swallowedExceptionInCatchBlock.getKind();
Map optionsMap = new HashMap();
optionsMap.put(CompilerOptions.OPTION_ReportSwallowedExceptionInCatchBlock,
swallowedExceptionKind == null ? "ignore" : swallowedExceptionKind.toString());
forCompiler.optio... |
244,321 | Bug 244321 I cannot aspect code written in SJPP-based encoding | null | resolved fixed | d5c2ead | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-08-29T20:08:59Z | 2008-08-15T17:06:40Z | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | public String formatEntry(int phaseId, Object data) {
StringBuffer sb = new StringBuffer();
if (phaseId == CompilationAndWeavingContext.BATCH_BUILD) {
sb.append("batch building ");
} else {
sb.append("incrementally building ");
}
AjBuildConfig config = (AjBuildConfig) data;
List classpath = co... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.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 distribut... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | import org.aspectj.apache.bcel.generic.InstructionBranch;
import org.aspectj.apache.bcel.generic.InstructionConstants;
import org.aspectj.apache.bcel.generic.InstructionFactory;
import org.aspectj.apache.bcel.generic.InstructionHandle;
import org.aspectj.apache.bcel.generic.InstructionLV;
import org.aspectj.apache.bcel... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | import org.aspectj.weaver.ShadowMunger;
import org.aspectj.weaver.UnresolvedType;
import org.aspectj.weaver.WeaverMessages;
import org.aspectj.weaver.World;
import org.aspectj.weaver.ast.Var;
import org.aspectj.weaver.patterns.AbstractPatternNodeVisitor;
import org.aspectj.weaver.patterns.AndPointcut;
import org.aspect... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | * * because of these two facts, the setup of the actual arguments (including
* possible target) callback method is the same for both kinds of advice:
* push the targetVar, if it exists (it will not exist for advice on static
* things), then push all the argVars.
*
* Protected things:
*
* * th... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | private ShadowRange range;
private final BcelWorld world;
private final LazyMethodGen enclosingMethod;
public static boolean appliedLazyTjpOptimization;
private String actualInstructionTargetType;
/** |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | * This generates an unassociated shadow, rooted in a particular method but not rooted to any particular point in the code. It
* should be given to a rooted ShadowRange in the {@link ShadowRange#associateWithShadow(BcelShadow)} method.
*/
public BcelShadow(BcelWorld world, Kind kind, Member signature, LazyMethodGen... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | while (true) {
Instruction inst = ih.getInstruction();
if (inst.opcode == Constants.INVOKESPECIAL && ((InvokeInstruction) inst).getName(cpg).equals("<init>")) {
depth++;
} else if (inst.opcode == Constants.NEW) {
depth--;
if (depth == 0)
break;
} else if (inst.opcode == Constants.DUP_X2) { |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | ih.setInstruction(InstructionConstants.DUP);
}
ih = ih.getPrev();
}
InstructionHandle newHandle = ih;
InstructionHandle endHandle = newHandle.getNext();
InstructionHandle nextHandle;
if (endHandle.getInstruction().opcode == Constants.DUP) {
nextHandle = endHandle.getNext();
retargetFrom(newH... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | throw new RuntimeException("Unhandled kind of new " + endHandle);
}
retargetFrom(newHandle, nextHandle);
retargetFrom(dupHandle, nextHandle);
retargetFrom(endHandle, nextHandle);
} else {
endHandle = newHandle;
nextHandle = endHandle.getNext();
retargetFrom(newHandle, nextHandle);
... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | sources[i].updateTarget(old, fresh);
}
}
}
}
private List badAdvice = null;
public void addAdvicePreventingLazyTjp(BcelAdvice advice) {
if (badAdvice == null)
badAdvice = new ArrayList();
badAdvice.add(advice);
}
protected void prepareForMungers() {
if (getKind() == C... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | ShadowRange range = getRange();
InstructionList body = range.getBody();
InstructionHandle start = range.getStart();
argVars = new BcelVar[1];
UnresolvedType tx = getArgType(0);
argVars[0] = genTempVar(tx, "ajc$arg0");
InstructionHandle insertedInstruction = range.insert(argVars[0].... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | }
initializeThisJoinPoint();
if (thisJoinPointVar != null && !isThisJoinPointLazy && badAdvice != null && badAdvice.size() > 1) {
int valid = 0;
for (Iterator iter = badAdvice.iterator(); iter.hasNext();) {
BcelAdvice element = (BcelAdvice) iter.next();
ISourceLocation sLoc = element.getSource... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | InstructionFactory fact = getFactory();
if (getKind().argsOnStack() && argVars != null) {
if (getKind() == ExceptionHandler && range.getEnd().getNext().getInstruction().equals(InstructionConstants.POP)) {
range.getEnd().getNext().setInstruction(InstructionConstants.NOP);
} else {
... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | }
}
}
public ShadowRange getRange() {
return range;
}
public void setRange(ShadowRange range) {
this.range = range;
}
private int sourceline = -1;
public int getSourceLine() {
if (sourceline != -1)
return sourceline;
Kind kind = getKind();
if ((kind == MethodExecution) || (kind == Const... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | sourceline = 0;
return sourceline;
}
}
sourceline = Utility.getSourceLine(range.getStart());
if (sourceline < 0)
sourceline = 0;
return sourceline;
}
public UnresolvedType getEnclosingType() {
return getEnclosingClass().getType();
}
public LazyClassGen getEnclosingClass() {
return enclosingM... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | public static BcelShadow makeStaticInitialization(BcelWorld world, LazyMethodGen enclosingMethod) {
InstructionList body = enclosingMethod.getBody();
InstructionHandle clinitStart = body.getStart();
if (clinitStart.getInstruction() instanceof InvokeInstruction) {
InvokeInstruction ii = (InvokeInstruction) c... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | InstructionList body = enclosingMethod.getBody();
UnresolvedType catchType = exceptionRange.getCatchType();
UnresolvedType inType = enclosingMethod.getEnclosingClass().getType();
ResolvedMemberImpl sig = MemberImpl.makeExceptionHandlerSignature(inType, catchType);
sig.setParameterNames(new String[] { findHandle... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | }
public static BcelShadow makeIfaceInitialization(BcelWorld world, LazyMethodGen constructor,
Member interfaceConstructorSignature) {
constructor.getBody();
BcelShadow s = new BcelShadow(world, Initialization, interfaceConstructorSignature, constructor, null);
return s;
... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | world,
null);
}
/**
* Create an initialization join point associated with a constructor, but not with any body of code yet. If this is actually
* matched, it's range will be set when we inline self constructors.
*
* @param constructor The constructor starting this initi... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | Member.CONSTRUCTOR), constructor, null);
if (constructor.getEffectiveSignature() != null) {
ret.setMatchingSignature(constructor.getEffectiveSignature().getEffectiveSignature());
}
return ret;
}
public static BcelShadow makeUnfinishedPreinitialization(BcelWorld world, LazyMethodGen constructor) {
BcelShado... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | (
;
}
public static BcelShadow makeShadowForMethod(BcelWorld world, LazyMethodGen enclosingMethod, Shadow.Kind kind, Member sig) {
final InstructionList body = enclosingMethod.getBody();
BcelShadow s = new BcelShadow(world, kind, sig, enclosingMethod, null... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | Member sig = world.makeJoinPointSignatureForMethodInvocation(enclosingMethod.getEnclosingClass(),
(InvokeInstruction) callHandle.getInstruction());
BcelShadow s = new BcelShadow(world, ConstructorCall, sig, enclosingMethod, enclosingShadow);
ShadowRange r = new ShadowRange(body);
r.associateWithShadow(s);
r... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | }
public static BcelShadow makeMonitorExit(BcelWorld world, LazyMethodGen enclosingMethod, InstructionHandle monitorInstruction,
BcelShadow enclosingShadow) {
final InstructionList body = enclosingMethod.getBody();
Member sig = world.makeJoinPointSignatureForMonitorExit(enclosingMethod.getEnclosingClass(), moni... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | }
public static BcelShadow makeMethodCall(BcelWorld world, LazyMethodGen enclosingMethod, InstructionHandle callHandle,
BcelShadow enclosingShadow) {
final InstructionList body = enclosingMethod.getBody();
BcelShadow s = new BcelShadow(world, MethodCall, world.makeJoinPointSignatureForMethodInvocation(enclosing... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | BcelShadow s = new BcelShadow(world, FieldGet, field,
enclosingMethod, enclosingShadow);
ShadowRange r = new ShadowRange(body);
r.associateWithShadow(s);
r.associateWithTargets(Range.genStart(body, getHandle), Range.genEnd(body, getHandle));
retargetAllBranches(getHandle, r.getStart());
retur... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | if (source instanceof InstructionBranch) {
source.updateTarget(from, to);
}
}
}
}
}
}
/**
* If the end of my range has no real instructions following then my context needs a return at the end.
*/
public boolean terminatesWithReturn() {
return getRange().getRealNext() == null;
}
... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | } else {
return ((BcelShadow) enclosingShadow).arg0HoldsThis();
}
}
private BcelVar thisVar = null;
private BcelVar targetVar = null;
private BcelVar[] argVars = null;
private MapkindedAnnotationVars = null;
private MapthisAnnotationVars = null;
private MaptargetAnnotationVars = null;
private Map[] argAn... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | return v;
}
public Var getTargetVar() {
if (!hasTarget()) {
throw new IllegalStateException("no target");
}
initializeTargetVar();
return targetVar;
}
public Var getTargetAnnotationVar(UnresolvedType forAnnotationType) {
if (!hasTarget()) {
throw new IllegalStateException("no target");
}
initial... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | }
public Var getKindedAnnotationVar(UnresolvedType forAnnotationType) {
initializeKindedAnnotationVars();
return (Var) kindedAnnotationVars.get(forAnnotationType);
}
public Var getWithinAnnotationVar(UnresolvedType forAnnotationType) {
initializeWithinAnnotationVars();
return (Var) withinAnnotationVars.get(f... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | lazyTjpConsumers++;
}
}
}
if (thisJoinPointVar == null) {
thisJoinPointVar = genTempVar(UnresolvedType.forName("org.aspectj.lang.JoinPoint"));
}
}
public Var getThisJoinPointVar() {
requireThisJoinPoint(false, false);
return thisJoinPointVar;
}
void initializeThisJoinPoint() {
if (t... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | il.append(thisJoinPointVar.createStore(fact));
range.insert(il, Range.OutsideBefore);
} else {
appliedLazyTjpOptimization = false;
InstructionFactory fact = getFactory();
InstructionList il = createThisJoinPoint();
il.append(thisJoinPointVar.createStore(fact));
range.insert(il, Range.OutsideBefore);... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | InstructionList il = new InstructionList();
if (isThisJoinPointLazy) {
il.append(createThisJoinPoint());
if (lazyTjpConsumers > 1) {
il.append(thisJoinPointVar.createStore(fact));
InstructionHandle end = il.append(thisJoinPointVar.createLoad(fact));
il.insert(InstructionFactory.createBranchI... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | il.append(InstructionConstants.ACONST_NULL);
}
switch (getArgCount()) {
case 0:
il.append(fact.createInvoke("org.aspectj.runtime.reflect.Factory", "makeJP", LazyClassGen.tjpType, new Type[] {
LazyClassGen.staticTjpType, Type.OBJECT, Type.OBJECT }, Constants.INVOKESTATIC));
break;
case 1:
((BcelVar... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | */
public BcelVar getThisJoinPointStaticPartBcelVar() {
return getThisJoinPointStaticPartBcelVar(false);
}
/**
* Get the Var for the xxxxJpStaticPart, xxx = this or enclosing
*
* @param isEnclosingJp true to have the enclosingJpStaticPart
* @return
*/
public BcelVar getThisJoinPointStaticPartBcelVar(fi... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | public BcelVar getThisEnclosingJoinPointStaticPartBcelVar() {
if (enclosingShadow == null) {
return getThisJoinPointStaticPartBcelVar(true);
} else {
return ((BcelShadow) enclosingShadow).getThisJoinPointStaticPartBcelVar(true);
}
}
public Member getEnclosingCodeSignature() {
if (getKind().isEnclo... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | int stateIndex = 0;
for (int i = 0, len = getArgCount(); i < len; i++) {
arrayVar.appendConvertableArrayStore(il, fact, stateIndex, (BcelVar) getArgVar(i));
stateIndex++;
}
arrayVar.appendLoad(il, fact);
return il;
}
/*
* initializing this is doesn't do anything, because this is protected from side-... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | targetVar = genTempVar(type, "ajc$target");
range.insert(targetVar.createStore(fact), Range.OutsideBefore);
targetVar.setPositionInAroundState(hasThis() ? 1 : 0);
}
}
/*
* PR 72528 This method double checks the target type under certain conditions. The Java 1.4 compilers seem to take calls to
* clone meth... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | }
if (searchPtr.getInstruction() instanceof FieldInstruction) {
FieldInstruction si = (FieldInstruction) searchPtr.getInstruction();
Type t = si.getFieldType(getEnclosingClass().getConstantPool());
return BcelWorld.fromBcel(t);
}
if (searchPtr.getInstruction().opcode == Constants.ANEWARRAY)... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | InstructionFactory fact = getFactory();
int len = getArgCount();
argVars = new BcelVar[len];
int positionOffset = (hasTarget() ? 1 : 0) + ((hasThis() && !getKind().isTargetSameAsThis()) ? 1 : 0);
if (getKind().argsOnStack()) {
for (int i = len - 1; i >= 0; i--) {
UnresolvedType type = getArgType(i);
... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | }
}
}
public void initializeForAroundClosure() {
initializeArgVars();
if (hasTarget())
initializeTargetVar();
if (hasThis())
initializeThisVar();
}
public void initializeThisAnnotationVars() {
if (thisAnnotationVars != null)
return;
thisAnnotationVars = new HashMap();
}
public void init... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | ResolvedType typeX = rtx[i];
targetAnnotationVars.put(typeX, new TypeAnnotationAccessVar(typeX, (BcelVar) getTargetVar()));
}
}
}
public void initializeArgAnnotationVars() {
if (argAnnotationVars != null)
return;
int numArgs = getArgCount();
argAnnotationVars = new Map[numArgs];
for (int i = 0... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | ResolvedMember fakerm = typeMunger.getSignature();
if (fakerm.getName().equals(getSignature().getName())
&& fakerm.getParameterSignature().equals(getSignature().getParameterSignature())) {
if (foundMember.getKind() == ResolvedMember.CONSTRUCTOR) {
foundMember = AjcMemberMaker.interConstructor(relev... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | ResolvedMember rmm = findMethod(typeMunger.getAspectType(), ajcMethod);
if (fakerm.getName().equals(getSignature().getName())
&& fakerm.getParameterSignature().equals(getSignature().getParameterSignature())) {
relevantType = typeMunger.getAspectType();
foundMember = rmm;
return foundMember... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | ResolvedType relevantType = shadowSignature.getDeclaringType().resolve(world);
if (relevantType.isRawType() || relevantType.isParameterizedType())
relevantType = relevantType.getGenericType();
if (getKind() == Shadow.StaticInitialization) {
annotations = relevantType.resolve(world).getAnnotationTypes();
} e... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | } else if (getKind() == Shadow.MethodExecution || getKind() == Shadow.ConstructorExecution
|| getKind() == Shadow.AdviceExecution) {
ResolvedMember foundMember = findMethod2(relevantType.getDeclaredMethods(), getSignature());
annotations = getAnnotations(foundMember, shadowSignature, relevantType);
ann... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | ResolvedMember member = rm[i];
if (member.getName().equals(sig.getName()) && member.getParameterSignature().equals(sig.getParameterSignature()))
found = member;
}
return found;
}
private ResolvedMember findMethod(ResolvedType aspectType, ResolvedMember ajcMethod) {
ResolvedMember decMethods[] = aspectTyp... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | ResolvedType ann = annotations[i];
Kind k = Shadow.StaticInitialization;
withinAnnotationVars.put(ann, new AnnotationAccessVar(k, ann, getEnclosingType(), null));
}
}
public void initializeWithinCodeAnnotationVars() {
if (withincodeAnnotationVars != null)
return;
withincodeAnnotationVars = new HashMap(... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | * To achieve this, we note all the return statements in the advice, and replace them with code that: 1) stores the return value
* on top of the stack in a temp var 2) jumps to the start of our advice block 3) restores the return value at the end of the
* advice block before ultimately returning
*
* We also nee... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | }
/**
* @return a list of all the return instructions in the range of this shadow
*/
private List findReturnInstructions() {
List returns = new ArrayList();
for (InstructionHandle ih = range.getStart(); ih != range.getEnd(); ih = ih.getNext()) {
if (ih.getInstruction().isReturnInstruction()) {
returns.... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | Instruction newReturnInstruction = null;
int i = returns.size() - 1;
while (newReturnInstruction == null && i >= 0) {
InstructionHandle ih = (InstructionHandle) returns.get(i);
if (ih.getInstruction().opcode != Constants.RETURN) {
newReturnInstruction = Utility.copyInstruction(ih.getInstruction());
... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | * @param munger
* @param firstInstructionInReturnSequence
* @return
*/
private InstructionList getAfterReturningAdviceDispatchInstructions(BcelAdvice munger,
InstructionHandle firstInstructionInReturnSequence) {
InstructionList advice = new InstructionList();
BcelVar tempVar = null;
if (munger.hasExtraP... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | tempVar.appendStore(advice, getFactory());
}
return tempVar;
}
/**
* Helper method for weaveAfterReturning
*
* Each return instruction in the method body is retargeted by calling this method. The return instruction is replaced by up to
* three instructions: 1) if the shadow returns a value, and that valu... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | }
if (newInstructions.isEmpty()) {
newInstructions.append(InstructionConstants.NOP);
}
Utility.replaceInstruction(returnHandle, newInstructions, enclosingMethod);
}
private boolean isLastInstructionInRange(InstructionHandle ih, ShadowRange aRange) {
return ih.getNext() == aRange.getEnd();
}
public void w... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | handler.append(bi);
handler.append(exceptionVar.createLoad(fact));
handler.append(fact.createCheckCast(eiieBcelType));
handler.append(InstructionConstants.ATHROW);
handler.append(ih);
}
InstructionList endHandler = new InstructionList(exceptionVar.createLoad(fact));
handler.append(munger.getAdviceInst... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | InstructionFactory fact = getFactory();
InstructionList handler = new InstructionList();
InstructionList rtExHandler = new InstructionList();
BcelVar exceptionVar = genTempVar(catchType);
handler.append(fact.createNew(NameMangler.SOFT_EXCEPTION_TYPE));
handler.append(InstructionFactory.createDup(1));
handle... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | enclosingMethod.addExceptionHandler(range.getStart().getNext(), protectedEnd.getPrev(), handlerStart,
(ObjectType) BcelWorld.makeBcelType(catchType),
getKind().hasHighPriorityExceptions());
}
public void weavePerObjectEntry(final BcelAdvice munger, final BcelVar onVar) {
final InstructionFactory fact =... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | String ptwField = NameMangler.perTypeWithinFieldForTarget(munger.getConcreteAspect());
entrySuccessInstructions.append(InstructionFactory.PUSH(fact.getConstantPool(), t.getName()));
entrySuccessInstructions.append(fact.createInvoke(aspectname, "ajc$createAspectInstance", new ObjectType(aspectname),
new Type[] {... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | throw new RuntimeException("Incorrectly attempting counter operation on stacked cflow");
entrySuccessInstructions.append(Utility.createGet(fact, cflowField));
entrySuccessInstructions.append(fact.createInvoke(NameMangler.CFLOW_COUNTER_TYPE, "inc", Type.VOID,
new Type[] {}, Constants.INVOKEVIRTUAL... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | testResult.appendLoad(exitInstructions, fact);
exitInstructions.append(InstructionFactory.createBranchInstruction(Constants.IFEQ, ifNoAdvice));
}
exitInstructions.append(Utility.createGet(fact, cflowField));
if (munger.getKind() != AdviceKind.PerCflowEntry && munger.getKind() != AdviceKind.PerCflowBelo... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | * At such a call, there is stuff on the stack representing the arguments to proceed. Pop these into the frame.
*
* Now build the stack for the call to the extracted method, taking values either from the join point state or from the new
* frame locs from proceed. Now call the extracted method. The right return va... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | }
ResolvedType rt = (declaringType.isParameterizedType() ? declaringType.getGenericType() : declaringType);
BcelObjectType ot = BcelWorld.getBcelObjectType(rt);
return;
}
LazyMethodGen adviceMethod = ot.getLazyClassGen().getLazyMethodGen(mungerSig);
if (!adviceMethod.getCanInline()) {
... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | canSeeProceedPassedToOther = true;
break;
}
curr = next;
}
if (canSeeProceedPassedToOther) {
adviceMethod.setCanInline(false);
weaveAroundClosure(munger, hasDynamicTest);
return;
}
}
enclosingMethod.setCanInline(false);
final InstructionFactory fact = getFactory(... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | if (thisVar != null) {
argVarList.add(thisVar);
proceedVarList.add(new BcelVar(thisVar.getType(), extraParamOffset));
extraParamOffset += thisVar.getType().getSize();
}
if (targetVar != null && targetVar != thisVar) {
argVarList.add(targetVar);
proceedVarList.add(new BcelVar(targetVar.getType(), extr... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | adviceMethod.getArgumentTypes();
Type[] extractedMethodParameterTypes = extractedMethod.getArgumentTypes();
Type[] parameterTypes = new Type[extractedMethodParameterTypes.length + adviceParameterTypes.length + 1];
int parameterIndex = 0;
System.arraycopy(extractedMethodParameterTypes, 0, para... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | varMap.put(i - extraParamOffset, i);
}
localAdviceMethod.getBody().insert(
BcelClassWeaver.genInlineInstructions(adviceMethod, localAdviceMethod, varMap, fact, true));
localAdviceMethod.setMaxLocals(nVars);
InstructionList advice = new InstructionList();
{
for (Iterator i = argVarL... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | }
if (!hasDynamicTest) {
range.append(advice);
} else {
InstructionList afterThingie = new InstructionList(InstructionConstants.NOP);
InstructionList callback = makeCallToCallback(extractedMethod);
if (terminatesWithReturn()) {
callback.append(InstructionFactory.createReturn(extractedMethod.ge... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | Instruction inst = curr.getInstruction();
if ((inst.opcode == Constants.INVOKESTATIC) && proceedName.equals(((InvokeInstruction) inst).getMethodName(cpg))) {
localAdviceMethod.getBody().append(curr,
getRedoneProceedCall(fact, extractedMethod, munger, localAdviceMethod, proceedVarList));
Utility.del... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | }
curr = next;
}
}
}
private InstructionList getRedoneProceedCall(InstructionFactory fact, LazyMethodGen callbackMethod, BcelAdvice munger,
LazyMethodGen localAdviceMethod, List argVarList) {
InstructionList ret = new InstructionList();
BcelVar[] adviceVars = munger.getExposedStateAsBcelVars(tru... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | proceedVars[proceedMap.get(i)].appendLoadAndConvert(ret, fact, stateTypeX);
} else {
((BcelVar) argVarList.get(i)).appendLoad(ret, fact);
}
}
ret.append(Utility.createInvoke(fact, callbackMethod));
ret.append(Utility.createConversion(fact, callbackMethod.getReturnType(), BcelWorld.makeBcelType(munger.ge... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | }
}
}
}
/**
* Annotation style handling for inlining.
*
* Note: The proceedingjoinpoint is already on the stack (since the user was calling pjp.proceed(...)
*
* The proceed map is ignored (in terms of argument repositioning) since we have a fixed expected format for annotation style... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | int theObjectArrayLocalNumber = localAdviceMethod.allocateLocal(objectArrayType);
ret.append(InstructionFactory.createStore(objectArrayType, theObjectArrayLocalNumber));
Type proceedingJpType = Type.getType("Lorg/aspectj/lang/ProceedingJoinPoint;");
int pjpLocalNumber = localAdviceMethod.allocateLocal(proc... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | if (getKind().isTargetSameAsThis()) {
ret.append(InstructionFactory.createLoad(objectArrayType, theObjectArrayLocalNumber));
ret.append(Utility.createConstant(fact, pointcutBindsThis ? 1 : 0));
ret.append(InstructionFactory.createArrayLoad(Type.OBJECT));
ret.append(Utility.createConversion(fact,... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | } else {
ret.append(InstructionFactory.createLoad(objectArrayType, theObjectArrayLocalNumber));
ret.append(Utility
.createConstant(fact, i - nextArgumentToProvideForCallback + indexIntoObjectArrayForArguments));
ret.append(InstructionFactory.createArrayLoad(Type.OBJECT));
ret.append(Utility.c... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | }
ret.append(Utility.createInvoke(fact, callbackMethod));
if (!UnresolvedType.OBJECT.equals(munger.getSignature().getReturnType())) {
ret.append(Utility.createConversion(fact, callbackMethod.getReturnType(), Type.OBJECT));
}
ret.append(Utility.createConversion(fact, callbackMethod.getReturnType(), Bcel... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | } |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | }
}
}
private boolean bindsThis(BcelAdvice munger) {
UsesThisVisitor utv = new UsesThisVisitor();
munger.getPointcut().accept(utv, null);
return utv.usesThis;
}
private boolean bindsTarget(BcelAdvice munger) {
UsesTargetVisitor utv = new UsesTargetVisitor();
munger.getPointcut().accept(u... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | boolean usesThis = false;
public Object visit(ThisOrTargetPointcut node, Object data) {
if (node.isThis() && node.isBinding())
usesThis = true;
return node;
}
public Object visit(AndPointcut node, Object data) {
if (!usesThis)
node.getLeft().accept(this, data);
if (!usesThis)
node.getRight... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | boolean usesTarget = false;
public Object visit(ThisOrTargetPointcut node, Object data) {
if (!node.isThis() && node.isBinding())
usesTarget = true;
return node; |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | }
public Object visit(AndPointcut node, Object data) {
if (!usesTarget)
node.getLeft().accept(this, data);
if (!usesTarget)
node.getRight().accept(this, data);
return node;
}
public Object visit(NotPointcut node, Object data) {
if (!usesTarget)
node.getNegatedPointcut().accept(this, data);... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | .getNewGeneratedNameTag());
Member constructorSig = new MemberImpl(Member.CONSTRUCTOR, UnresolvedType.forName(closureClassName), 0, "<init>",
"([Ljava/lang/Object;)V");
BcelVar closureHolder = null;
if (getKind() == PreInitialization) {
closureHolder = genTempVar(AjcMemberMaker.AROUND_CLOSURE_TYPE);
... |
246,021 | Bug 246021 FindBugs reporting another optimization | Ben Hale reported that FindBugs was producing a warning about a dead store to a local variable (a variable that is never then read within the method). This bug is to investigate and hopefully remove the dead store. | resolved fixed | 78a483d | AspectJ | https://github.com/eclipse/org.aspectj | eclipse/org.aspectj | java | null | null | null | 2008-09-03T00:28:44Z | 2008-09-02T21:13:20Z | weaver/src/org/aspectj/weaver/bcel/BcelShadow.java | }
stateTempVar.appendConvertableArrayLoad(returnConversionCode, fact, i, stateRTX);
}
} else {
Member mungerSignature = munger.getSignature();
if (munger.getSignature() instanceof ResolvedMember) {
if (((ResolvedMember) mungerSignature).hasBackingGenericMember()) {
mungerSignature = ((Resolv... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.