class org.aspectj.weaver.tools.cache.SimpleCache$StoreableCachingMap extends java.util.HashMap
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.aspectj.weaver.tools.cache.SimpleCache$StoreableCachingMap
super_class: java.util.HashMap
{
private java.lang.String folder;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private static final java.lang.String CACHENAMEIDX;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "cache.idx"
private long lastStored;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private static int DEF_STORING_TIMER;
descriptor: I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private int storingTimer;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private transient org.aspectj.weaver.tools.Trace trace;
descriptor: Lorg/aspectj/weaver/tools/Trace;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc 60000
putstatic org.aspectj.weaver.tools.cache.SimpleCache$StoreableCachingMap.DEF_STORING_TIMER:I
return
LocalVariableTable:
Start End Slot Name Signature
private void initTrace();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.aspectj.weaver.tools.TraceFactory.getTraceFactory:()Lorg/aspectj/weaver/tools/TraceFactory;
ldc Lorg/aspectj/weaver/tools/cache/SimpleCache$StoreableCachingMap;
invokevirtual org.aspectj.weaver.tools.TraceFactory.getTrace:(Ljava/lang/Class;)Lorg/aspectj/weaver/tools/Trace;
putfield org.aspectj.weaver.tools.cache.SimpleCache$StoreableCachingMap.trace:Lorg/aspectj/weaver/tools/Trace;
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/aspectj/weaver/tools/cache/SimpleCache$StoreableCachingMap;
private void <init>(java.lang.String, int);
descriptor: (Ljava/lang/String;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.util.HashMap.<init>:()V
1: aload 0
invokestatic java.lang.System.currentTimeMillis:()J
putfield org.aspectj.weaver.tools.cache.SimpleCache$StoreableCachingMap.lastStored:J
2: aload 0
aload 1
putfield org.aspectj.weaver.tools.cache.SimpleCache$StoreableCachingMap.folder:Ljava/lang/String;
3: aload 0
invokevirtual org.aspectj.weaver.tools.cache.SimpleCache$StoreableCachingMap.initTrace:()V
4: aload 0
iload 2
putfield org.aspectj.weaver.tools.cache.SimpleCache$StoreableCachingMap.storingTimer:I
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/aspectj/weaver/tools/cache/SimpleCache$StoreableCachingMap;
0 6 1 folder Ljava/lang/String;
0 6 2 storingTimer I
MethodParameters:
Name Flags
folder
storingTimer
public static org.aspectj.weaver.tools.cache.SimpleCache$StoreableCachingMap init(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/aspectj/weaver/tools/cache/SimpleCache$StoreableCachingMap;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.aspectj.weaver.tools.cache.SimpleCache$StoreableCachingMap.DEF_STORING_TIMER:I
invokestatic org.aspectj.weaver.tools.cache.SimpleCache$StoreableCachingMap.init:(Ljava/lang/String;I)Lorg/aspectj/weaver/tools/cache/SimpleCache$StoreableCachingMap;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 folder Ljava/lang/String;
MethodParameters:
Name Flags
folder
public static org.aspectj.weaver.tools.cache.SimpleCache$StoreableCachingMap init(java.lang.String, int);
descriptor: (Ljava/lang/String;I)Lorg/aspectj/weaver/tools/cache/SimpleCache$StoreableCachingMap;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: new java.io.File
dup
new java.lang.StringBuilder
dup
aload 0
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic java.io.File.separator:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "cache.idx"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 2
start local 2 1: aload 2
invokevirtual java.io.File.exists:()Z
ifeq 13
2: new java.io.ObjectInputStream
dup
3: new java.io.FileInputStream
dup
aload 2
invokespecial java.io.FileInputStream.<init>:(Ljava/io/File;)V
4: invokespecial java.io.ObjectInputStream.<init>:(Ljava/io/InputStream;)V
astore 3
start local 3 5: aload 3
invokevirtual java.io.ObjectInputStream.readObject:()Ljava/lang/Object;
checkcast org.aspectj.weaver.tools.cache.SimpleCache$StoreableCachingMap
astore 4
start local 4 6: aload 4
invokevirtual org.aspectj.weaver.tools.cache.SimpleCache$StoreableCachingMap.initTrace:()V
7: aload 3
invokevirtual java.io.ObjectInputStream.close:()V
8: aload 4
9: areturn
end local 4 end local 3 10: StackMap locals: java.lang.String int java.io.File
StackMap stack: java.lang.Exception
astore 3
start local 3 11: invokestatic org.aspectj.weaver.tools.TraceFactory.getTraceFactory:()Lorg/aspectj/weaver/tools/TraceFactory;
ldc Lorg/aspectj/weaver/tools/cache/SimpleCache$StoreableCachingMap;
invokevirtual org.aspectj.weaver.tools.TraceFactory.getTrace:(Ljava/lang/Class;)Lorg/aspectj/weaver/tools/Trace;
astore 4
start local 4 12: aload 4
ldc "Error reading Storable Cache"
aload 3
invokeinterface org.aspectj.weaver.tools.Trace.error:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 4 end local 3 13: StackMap locals:
StackMap stack:
new org.aspectj.weaver.tools.cache.SimpleCache$StoreableCachingMap
dup
aload 0
iload 1
invokespecial org.aspectj.weaver.tools.cache.SimpleCache$StoreableCachingMap.<init>:(Ljava/lang/String;I)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 folder Ljava/lang/String;
0 14 1 storingTimer I
1 14 2 file Ljava/io/File;
5 10 3 in Ljava/io/ObjectInputStream;
6 10 4 sm Lorg/aspectj/weaver/tools/cache/SimpleCache$StoreableCachingMap;
11 13 3 e Ljava/lang/Exception;
12 13 4 trace Lorg/aspectj/weaver/tools/Trace;
Exception table:
from to target type
2 9 10 Class java.lang.Exception
MethodParameters:
Name Flags
folder
storingTimer
public java.lang.Object get(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial java.util.HashMap.containsKey:(Ljava/lang/Object;)Z
ifeq 7
1: aload 0
aload 1
invokespecial java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 2: aload 2
ldc "IDEM"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 5
3: getstatic org.aspectj.weaver.tools.cache.SimpleCache.SAME_BYTES:[B
4: areturn
5: StackMap locals: java.lang.String
StackMap stack:
aload 0
aload 2
invokevirtual org.aspectj.weaver.tools.cache.SimpleCache$StoreableCachingMap.readFromPath:(Ljava/lang/String;)[B
6: areturn
end local 2 7: StackMap locals:
StackMap stack:
aconst_null
areturn
8: StackMap locals:
StackMap stack: java.io.IOException
astore 2
start local 2 9: aload 0
getfield org.aspectj.weaver.tools.cache.SimpleCache$StoreableCachingMap.trace:Lorg/aspectj/weaver/tools/Trace;
new java.lang.StringBuilder
dup
ldc "Error reading key:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
invokeinterface org.aspectj.weaver.tools.Trace.error:(Ljava/lang/String;Ljava/lang/Throwable;)V
10: aload 2
invokestatic org.aspectj.weaver.Dump.dumpWithException:(Ljava/lang/Throwable;)Ljava/lang/String;
pop
end local 2 11: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/aspectj/weaver/tools/cache/SimpleCache$StoreableCachingMap;
0 12 1 obj Ljava/lang/Object;
2 7 2 path Ljava/lang/String;
9 11 2 e Ljava/io/IOException;
Exception table:
from to target type
0 4 8 Class java.io.IOException
5 6 8 Class java.io.IOException
MethodParameters:
Name Flags
obj
public java.lang.Object put(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: aload 2
checkcast byte[]
astore 4
start local 4 2: aload 4
getstatic org.aspectj.weaver.tools.cache.SimpleCache.SAME_BYTES:[B
invokestatic java.util.Arrays.equals:([B[B)Z
ifeq 5
3: ldc "IDEM"
astore 3
4: goto 6
5: StackMap locals: java.lang.String byte[]
StackMap stack:
aload 0
aload 1
checkcast java.lang.String
aload 4
invokevirtual org.aspectj.weaver.tools.cache.SimpleCache$StoreableCachingMap.writeToPath:(Ljava/lang/String;[B)Ljava/lang/String;
astore 3
6: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 3
invokespecial java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
astore 5
start local 5 7: aload 0
invokevirtual org.aspectj.weaver.tools.cache.SimpleCache$StoreableCachingMap.storeMap:()V
8: aload 5
9: areturn
end local 5 end local 4 end local 3 10: StackMap locals: org.aspectj.weaver.tools.cache.SimpleCache$StoreableCachingMap java.lang.Object java.lang.Object
StackMap stack: java.io.IOException
astore 3
start local 3 11: aload 0
getfield org.aspectj.weaver.tools.cache.SimpleCache$StoreableCachingMap.trace:Lorg/aspectj/weaver/tools/Trace;
new java.lang.StringBuilder
dup
ldc "Error inserting in cache: key:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "; value:"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
invokeinterface org.aspectj.weaver.tools.Trace.error:(Ljava/lang/String;Ljava/lang/Throwable;)V
12: aload 3
invokestatic org.aspectj.weaver.Dump.dumpWithException:(Ljava/lang/Throwable;)Ljava/lang/String;
pop
end local 3 13: aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/aspectj/weaver/tools/cache/SimpleCache$StoreableCachingMap;
0 14 1 key Ljava/lang/Object;
0 14 2 value Ljava/lang/Object;
1 10 3 path Ljava/lang/String;
2 10 4 valueBytes [B
7 10 5 result Ljava/lang/Object;
11 13 3 e Ljava/io/IOException;
Exception table:
from to target type
0 9 10 Class java.io.IOException
MethodParameters:
Name Flags
key
value
public void storeMap();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=1
start local 0 0: invokestatic java.lang.System.currentTimeMillis:()J
lstore 1
start local 1 1: lload 1
aload 0
getfield org.aspectj.weaver.tools.cache.SimpleCache$StoreableCachingMap.lastStored:J
lsub
aload 0
getfield org.aspectj.weaver.tools.cache.SimpleCache$StoreableCachingMap.storingTimer:I
i2l
lcmp
ifge 3
2: return
3: StackMap locals: long
StackMap stack:
new java.io.File
dup
new java.lang.StringBuilder
dup
aload 0
getfield org.aspectj.weaver.tools.cache.SimpleCache$StoreableCachingMap.folder:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic java.io.File.separator:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "cache.idx"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 3
start local 3 4: new java.io.ObjectOutputStream
dup
5: new java.io.FileOutputStream
dup
aload 3
invokespecial java.io.FileOutputStream.<init>:(Ljava/io/File;)V
6: invokespecial java.io.ObjectOutputStream.<init>:(Ljava/io/OutputStream;)V
astore 4
start local 4 7: aload 4
aload 0
invokevirtual java.io.ObjectOutputStream.writeObject:(Ljava/lang/Object;)V
8: aload 4
invokevirtual java.io.ObjectOutputStream.close:()V
9: aload 0
lload 1
putfield org.aspectj.weaver.tools.cache.SimpleCache$StoreableCachingMap.lastStored:J
end local 4 10: goto 14
StackMap locals: org.aspectj.weaver.tools.cache.SimpleCache$StoreableCachingMap long java.io.File
StackMap stack: java.lang.Exception
11: astore 4
start local 4 12: aload 0
getfield org.aspectj.weaver.tools.cache.SimpleCache$StoreableCachingMap.trace:Lorg/aspectj/weaver/tools/Trace;
new java.lang.StringBuilder
dup
ldc "Error storing cache; cache file:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 4
invokeinterface org.aspectj.weaver.tools.Trace.error:(Ljava/lang/String;Ljava/lang/Throwable;)V
13: aload 4
invokestatic org.aspectj.weaver.Dump.dumpWithException:(Ljava/lang/Throwable;)Ljava/lang/String;
pop
end local 4 14: StackMap locals:
StackMap stack:
return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/aspectj/weaver/tools/cache/SimpleCache$StoreableCachingMap;
1 15 1 now J
4 15 3 file Ljava/io/File;
7 10 4 out Ljava/io/ObjectOutputStream;
12 14 4 e Ljava/lang/Exception;
Exception table:
from to target type
4 10 11 Class java.lang.Exception
private byte[] readFromPath(java.lang.String);
descriptor: (Ljava/lang/String;)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: new java.io.FileInputStream
dup
aload 1
invokespecial java.io.FileInputStream.<init>:(Ljava/lang/String;)V
astore 2
2: goto 7
3: StackMap locals: org.aspectj.weaver.tools.cache.SimpleCache$StoreableCachingMap java.lang.String java.io.FileInputStream
StackMap stack: java.io.FileNotFoundException
astore 3
start local 3 4: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "FileNotFoundExceptions: The aspectj cache is corrupt. Please clean it and reboot the server. Cache path:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.aspectj.weaver.tools.cache.SimpleCache$StoreableCachingMap.folder:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
5: aload 3
invokevirtual java.io.FileNotFoundException.printStackTrace:()V
6: aconst_null
areturn
end local 3 7: StackMap locals:
StackMap stack:
new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
astore 3
start local 3 8: sipush 16384
newarray 8
astore 5
start local 5 9: goto 11
start local 4 10: StackMap locals: java.io.ByteArrayOutputStream int byte[]
StackMap stack:
aload 3
aload 5
iconst_0
iload 4
invokevirtual java.io.ByteArrayOutputStream.write:([BII)V
end local 4 11: StackMap locals: org.aspectj.weaver.tools.cache.SimpleCache$StoreableCachingMap java.lang.String java.io.FileInputStream java.io.ByteArrayOutputStream top byte[]
StackMap stack:
aload 2
aload 5
iconst_0
aload 5
arraylength
invokevirtual java.io.FileInputStream.read:([BII)I
dup
istore 4
start local 4 12: iconst_m1
if_icmpne 10
13: aload 3
invokevirtual java.io.ByteArrayOutputStream.flush:()V
14: aload 2
invokevirtual java.io.FileInputStream.close:()V
15: aload 3
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/aspectj/weaver/tools/cache/SimpleCache$StoreableCachingMap;
0 16 1 fullPath Ljava/lang/String;
1 16 2 is Ljava/io/FileInputStream;
4 7 3 e Ljava/io/FileNotFoundException;
8 16 3 buffer Ljava/io/ByteArrayOutputStream;
10 11 4 nRead I
12 16 4 nRead I
9 16 5 data [B
Exception table:
from to target type
1 2 3 Class java.io.FileNotFoundException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
fullPath
private java.lang.String writeToPath(java.lang.String, byte[]);
descriptor: (Ljava/lang/String;[B)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: new java.lang.StringBuilder
dup
aload 0
getfield org.aspectj.weaver.tools.cache.SimpleCache$StoreableCachingMap.folder:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic java.io.File.separator:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
start local 3 1: new java.io.FileOutputStream
dup
aload 3
invokespecial java.io.FileOutputStream.<init>:(Ljava/lang/String;)V
astore 4
start local 4 2: aload 4
aload 2
invokevirtual java.io.FileOutputStream.write:([B)V
3: aload 4
invokevirtual java.io.FileOutputStream.flush:()V
4: aload 4
invokevirtual java.io.FileOutputStream.close:()V
5: aload 3
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/aspectj/weaver/tools/cache/SimpleCache$StoreableCachingMap;
0 6 1 key Ljava/lang/String;
0 6 2 bytes [B
1 6 3 fullPath Ljava/lang/String;
2 6 4 fos Ljava/io/FileOutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
key
bytes
}
SourceFile: "SimpleCache.java"
NestHost: org.aspectj.weaver.tools.cache.SimpleCache
InnerClasses:
private StoreableCachingMap = org.aspectj.weaver.tools.cache.SimpleCache$StoreableCachingMap of org.aspectj.weaver.tools.cache.SimpleCache