diff options
author | Andy Clement <aclement@pivotal.io> | 2021-06-24 15:03:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-24 15:03:11 -0700 |
commit | e7c98e473a9890565952f78df78490b641834394 (patch) | |
tree | 63cb93d138dfc1903d4416e70937d6b7db535705 /bcel-builder | |
parent | d17189c430a7ffd1ec966759a93b3ed348766650 (diff) | |
parent | e09d968326ee53f903ceaae086735698b6ce7109 (diff) | |
download | aspectj-e7c98e473a9890565952f78df78490b641834394.tar.gz aspectj-e7c98e473a9890565952f78df78490b641834394.zip |
Merge pull request #64 from SmallGiantGames/bug415838
add synchronization to LocalVariableTable
Diffstat (limited to 'bcel-builder')
-rw-r--r-- | bcel-builder/src/main/java/org/aspectj/apache/bcel/classfile/LocalVariableTable.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/bcel-builder/src/main/java/org/aspectj/apache/bcel/classfile/LocalVariableTable.java b/bcel-builder/src/main/java/org/aspectj/apache/bcel/classfile/LocalVariableTable.java index e6415dae6..a67caf8c1 100644 --- a/bcel-builder/src/main/java/org/aspectj/apache/bcel/classfile/LocalVariableTable.java +++ b/bcel-builder/src/main/java/org/aspectj/apache/bcel/classfile/LocalVariableTable.java @@ -63,7 +63,7 @@ import org.aspectj.apache.bcel.Constants; /** * This class represents collection of local variables in a method. This attribute is contained in the <em>Code</em> attribute. - * + * * @version $Id: LocalVariableTable.java,v 1.8 2009/09/15 19:40:12 aclement Exp $ * @author <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A> * @see Code @@ -99,7 +99,7 @@ public class LocalVariableTable extends Attribute { /** * Construct object from file stream. - * + * * @param name_index Index in constant pool * @param length Content length in bytes * @param file Input stream @@ -117,7 +117,7 @@ public class LocalVariableTable extends Attribute { /** * Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class. I.e., the * hierarchy of methods, fields, attributes, etc. spawns a tree of objects. - * + * * @param v Visitor object */ @Override @@ -128,12 +128,12 @@ public class LocalVariableTable extends Attribute { /** * Dump local variable table attribute to file stream in binary format. - * + * * @param file Output file stream * @throws IOException */ @Override - public final void dump(DataOutputStream file) throws IOException { + public final synchronized void dump(DataOutputStream file) throws IOException { super.dump(file); if (isInPackedState) { file.write(data); @@ -165,7 +165,7 @@ public class LocalVariableTable extends Attribute { return null; } - public final void setLocalVariableTable(LocalVariable[] local_variable_table) { + public synchronized final void setLocalVariableTable(LocalVariable[] local_variable_table) { data = null; isInPackedState = false; this.localVariableTable = local_variable_table; @@ -210,7 +210,7 @@ public class LocalVariableTable extends Attribute { // --- // Unpacks the byte array into the table - private void unpack() { + private synchronized void unpack() { if (!isInPackedState) return; try { |