public class io.vertx.core.impl.verticle.CompilingClassLoader extends java.lang.ClassLoader
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.core.impl.verticle.CompilingClassLoader
super_class: java.lang.ClassLoader
{
private static final io.vertx.core.logging.Logger log;
descriptor: Lio/vertx/core/logging/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String JAVA_COMPILER_OPTIONS_PROP_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "vertx.javaCompilerOptions"
private static final java.util.List<java.lang.String> COMPILER_OPTIONS;
descriptor: Ljava/util/List;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/List<Ljava/lang/String;>;
private final io.vertx.core.impl.verticle.JavaSourceContext javaSourceContext;
descriptor: Lio/vertx/core/impl/verticle/JavaSourceContext;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.vertx.core.impl.verticle.MemoryFileManager fileManager;
descriptor: Lio/vertx/core/impl/verticle/MemoryFileManager;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=7, args_size=0
0: ldc Lio/vertx/core/impl/verticle/CompilingClassLoader;
invokestatic io.vertx.core.logging.LoggerFactory.getLogger:(Ljava/lang/Class;)Lio/vertx/core/logging/Logger;
putstatic io.vertx.core.impl.verticle.CompilingClassLoader.log:Lio/vertx/core/logging/Logger;
1: ldc "vertx.javaCompilerOptions"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 0
start local 0 2: aload 0
ifnull 12
3: aload 0
ldc ","
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 1
start local 1 4: new java.util.ArrayList
dup
aload 1
arraylength
invokespecial java.util.ArrayList.<init>:(I)V
astore 2
start local 2 5: aload 1
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 9
StackMap locals: java.lang.String java.lang.String[] java.util.List top int int java.lang.String[]
StackMap stack:
6: aload 6
iload 4
aaload
astore 3
start local 3 7: aload 2
aload 3
invokevirtual java.lang.String.trim:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 3 8: iinc 4 1
StackMap locals:
StackMap stack:
9: iload 4
iload 5
if_icmplt 6
10: aload 2
invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
putstatic io.vertx.core.impl.verticle.CompilingClassLoader.COMPILER_OPTIONS:Ljava/util/List;
end local 2 end local 1 11: goto 13
12: StackMap locals: java.lang.String
StackMap stack:
aconst_null
putstatic io.vertx.core.impl.verticle.CompilingClassLoader.COMPILER_OPTIONS:Ljava/util/List;
end local 0 13: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
2 13 0 props Ljava/lang/String;
4 11 1 array [Ljava/lang/String;
5 11 2 compilerProps Ljava/util/List<Ljava/lang/String;>;
7 8 3 prop Ljava/lang/String;
public void <init>(java.lang.ClassLoader, java.lang.String);
descriptor: (Ljava/lang/ClassLoader;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=14, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokespecial java.lang.ClassLoader.<init>:(Ljava/lang/ClassLoader;)V
1: aload 0
aload 2
invokevirtual io.vertx.core.impl.verticle.CompilingClassLoader.getResource:(Ljava/lang/String;)Ljava/net/URL;
astore 3
start local 3 2: aload 3
ifnonnull 4
3: new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "Resource not found: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: io.vertx.core.impl.verticle.CompilingClassLoader java.lang.ClassLoader java.lang.String java.net.URL
StackMap stack:
new java.io.File
dup
aload 3
invokevirtual java.net.URL.getFile:()Ljava/lang/String;
iconst_0
invokestatic io.vertx.core.net.impl.URIDecoder.decodeURIComponent:(Ljava/lang/String;Z)Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 4
start local 4 5: aload 4
invokevirtual java.io.File.canRead:()Z
ifne 7
6: new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "File not found: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " current dir is: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
new java.io.File
dup
ldc "."
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
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;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: java.io.File
StackMap stack:
aload 0
new io.vertx.core.impl.verticle.JavaSourceContext
dup
aload 4
invokespecial io.vertx.core.impl.verticle.JavaSourceContext.<init>:(Ljava/io/File;)V
putfield io.vertx.core.impl.verticle.CompilingClassLoader.javaSourceContext:Lio/vertx/core/impl/verticle/JavaSourceContext;
8: new javax.tools.DiagnosticCollector
dup
invokespecial javax.tools.DiagnosticCollector.<init>:()V
astore 5
start local 5 9: invokestatic javax.tools.ToolProvider.getSystemJavaCompiler:()Ljavax/tools/JavaCompiler;
astore 6
start local 6 10: aload 6
ifnonnull 12
11: new java.lang.RuntimeException
dup
ldc "Unable to detect java compiler, make sure you're using a JDK not a JRE!"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals: javax.tools.DiagnosticCollector javax.tools.JavaCompiler
StackMap stack:
aload 6
aconst_null
aconst_null
aconst_null
invokeinterface javax.tools.JavaCompiler.getStandardFileManager:(Ljavax/tools/DiagnosticListener;Ljava/util/Locale;Ljava/nio/charset/Charset;)Ljavax/tools/StandardJavaFileManager;
astore 7
start local 7 13: aload 7
getstatic javax.tools.StandardLocation.SOURCE_PATH:Ljavax/tools/StandardLocation;
aload 0
getfield io.vertx.core.impl.verticle.CompilingClassLoader.javaSourceContext:Lio/vertx/core/impl/verticle/JavaSourceContext;
invokevirtual io.vertx.core.impl.verticle.JavaSourceContext.getSourceRoot:()Ljava/io/File;
invokestatic java.util.Collections.singleton:(Ljava/lang/Object;)Ljava/util/Set;
invokeinterface javax.tools.StandardJavaFileManager.setLocation:(Ljavax/tools/JavaFileManager$Location;Ljava/lang/Iterable;)V
14: aload 0
new io.vertx.core.impl.verticle.MemoryFileManager
dup
aload 1
aload 7
invokespecial io.vertx.core.impl.verticle.MemoryFileManager.<init>:(Ljava/lang/ClassLoader;Ljavax/tools/JavaFileManager;)V
putfield io.vertx.core.impl.verticle.CompilingClassLoader.fileManager:Lio/vertx/core/impl/verticle/MemoryFileManager;
15: aload 7
getstatic javax.tools.StandardLocation.SOURCE_PATH:Ljavax/tools/StandardLocation;
aload 0
invokevirtual io.vertx.core.impl.verticle.CompilingClassLoader.resolveMainClassName:()Ljava/lang/String;
getstatic javax.tools.JavaFileObject$Kind.SOURCE:Ljavax/tools/JavaFileObject$Kind;
invokeinterface javax.tools.StandardJavaFileManager.getJavaFileForInput:(Ljavax/tools/JavaFileManager$Location;Ljava/lang/String;Ljavax/tools/JavaFileObject$Kind;)Ljavax/tools/JavaFileObject;
astore 8
start local 8 16: aload 6
aconst_null
aload 0
getfield io.vertx.core.impl.verticle.CompilingClassLoader.fileManager:Lio/vertx/core/impl/verticle/MemoryFileManager;
aload 5
getstatic io.vertx.core.impl.verticle.CompilingClassLoader.COMPILER_OPTIONS:Ljava/util/List;
aconst_null
aload 8
invokestatic java.util.Collections.singleton:(Ljava/lang/Object;)Ljava/util/Set;
invokeinterface javax.tools.JavaCompiler.getTask:(Ljava/io/Writer;Ljavax/tools/JavaFileManager;Ljavax/tools/DiagnosticListener;Ljava/lang/Iterable;Ljava/lang/Iterable;Ljava/lang/Iterable;)Ljavax/tools/JavaCompiler$CompilationTask;
astore 9
start local 9 17: aload 9
invokeinterface javax.tools.JavaCompiler$CompilationTask.call:()Ljava/lang/Boolean;
invokevirtual java.lang.Boolean.booleanValue:()Z
istore 10
start local 10 18: iload 10
ifeq 27
19: aload 5
invokevirtual javax.tools.DiagnosticCollector.getDiagnostics:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 12
goto 25
StackMap locals: io.vertx.core.impl.verticle.CompilingClassLoader java.lang.ClassLoader java.lang.String java.net.URL java.io.File javax.tools.DiagnosticCollector javax.tools.JavaCompiler javax.tools.StandardJavaFileManager javax.tools.JavaFileObject javax.tools.JavaCompiler$CompilationTask int top java.util.Iterator
StackMap stack:
20: aload 12
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.tools.Diagnostic
astore 11
start local 11 21: aload 11
invokeinterface javax.tools.Diagnostic.getCode:()Ljava/lang/String;
astore 13
start local 13 22: aload 13
ifnull 24
aload 13
ldc "compiler.warn.annotation.method.not.found"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 25
23: ldc "compiler.warn.proc.processor.incompatible.source.version"
aload 13
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 25
24: StackMap locals: io.vertx.core.impl.verticle.CompilingClassLoader java.lang.ClassLoader java.lang.String java.net.URL java.io.File javax.tools.DiagnosticCollector javax.tools.JavaCompiler javax.tools.StandardJavaFileManager javax.tools.JavaFileObject javax.tools.JavaCompiler$CompilationTask int javax.tools.Diagnostic java.util.Iterator java.lang.String
StackMap stack:
getstatic io.vertx.core.impl.verticle.CompilingClassLoader.log:Lio/vertx/core/logging/Logger;
aload 11
invokevirtual io.vertx.core.logging.Logger.info:(Ljava/lang/Object;)V
end local 13 end local 11 25: StackMap locals: io.vertx.core.impl.verticle.CompilingClassLoader java.lang.ClassLoader java.lang.String java.net.URL java.io.File javax.tools.DiagnosticCollector javax.tools.JavaCompiler javax.tools.StandardJavaFileManager javax.tools.JavaFileObject javax.tools.JavaCompiler$CompilationTask int top java.util.Iterator
StackMap stack:
aload 12
invokeinterface java.util.Iterator.hasNext:()Z
ifne 20
26: goto 34
27: StackMap locals: io.vertx.core.impl.verticle.CompilingClassLoader java.lang.ClassLoader java.lang.String java.net.URL java.io.File javax.tools.DiagnosticCollector javax.tools.JavaCompiler javax.tools.StandardJavaFileManager javax.tools.JavaFileObject javax.tools.JavaCompiler$CompilationTask int
StackMap stack:
aload 5
invokevirtual javax.tools.DiagnosticCollector.getDiagnostics:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 12
goto 30
StackMap locals: io.vertx.core.impl.verticle.CompilingClassLoader java.lang.ClassLoader java.lang.String java.net.URL java.io.File javax.tools.DiagnosticCollector javax.tools.JavaCompiler javax.tools.StandardJavaFileManager javax.tools.JavaFileObject javax.tools.JavaCompiler$CompilationTask int top java.util.Iterator
StackMap stack:
28: aload 12
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.tools.Diagnostic
astore 11
start local 11 29: getstatic io.vertx.core.impl.verticle.CompilingClassLoader.log:Lio/vertx/core/logging/Logger;
aload 11
invokevirtual io.vertx.core.logging.Logger.warn:(Ljava/lang/Object;)V
end local 11 30: StackMap locals:
StackMap stack:
aload 12
invokeinterface java.util.Iterator.hasNext:()Z
ifne 28
31: new java.lang.RuntimeException
dup
ldc "Compilation failed!"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 32: StackMap locals: io.vertx.core.impl.verticle.CompilingClassLoader java.lang.ClassLoader java.lang.String java.net.URL java.io.File
StackMap stack: java.lang.Exception
astore 5
start local 5 33: new java.lang.RuntimeException
dup
ldc "Compilation failed"
aload 5
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 5 34: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 35 0 this Lio/vertx/core/impl/verticle/CompilingClassLoader;
0 35 1 loader Ljava/lang/ClassLoader;
0 35 2 sourceName Ljava/lang/String;
2 35 3 resource Ljava/net/URL;
5 35 4 sourceFile Ljava/io/File;
9 32 5 diagnostics Ljavax/tools/DiagnosticCollector<Ljavax/tools/JavaFileObject;>;
10 32 6 javaCompiler Ljavax/tools/JavaCompiler;
13 32 7 standardFileManager Ljavax/tools/StandardJavaFileManager;
16 32 8 javaFile Ljavax/tools/JavaFileObject;
17 32 9 task Ljavax/tools/JavaCompiler$CompilationTask;
18 32 10 valid Z
21 25 11 d Ljavax/tools/Diagnostic<*>;
22 25 13 code Ljava/lang/String;
29 30 11 d Ljavax/tools/Diagnostic<*>;
33 34 5 e Ljava/lang/Exception;
Exception table:
from to target type
8 32 32 Class java.lang.Exception
MethodParameters:
Name Flags
loader
sourceName
public java.lang.String resolveMainClassName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.impl.verticle.CompilingClassLoader.javaSourceContext:Lio/vertx/core/impl/verticle/JavaSourceContext;
invokevirtual io.vertx.core.impl.verticle.JavaSourceContext.getClassName:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/impl/verticle/CompilingClassLoader;
protected java.lang.Class<?> findClass(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Class;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual io.vertx.core.impl.verticle.CompilingClassLoader.getClassBytes:(Ljava/lang/String;)[B
astore 2
start local 2 1: aload 2
ifnonnull 3
2: new java.lang.ClassNotFoundException
dup
aload 1
invokespecial java.lang.ClassNotFoundException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: byte[]
StackMap stack:
aload 0
aload 1
aload 2
iconst_0
aload 2
arraylength
invokevirtual io.vertx.core.impl.verticle.CompilingClassLoader.defineClass:(Ljava/lang/String;[BII)Ljava/lang/Class;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/core/impl/verticle/CompilingClassLoader;
0 4 1 name Ljava/lang/String;
1 4 2 bytecode [B
Exceptions:
throws java.lang.ClassNotFoundException
Signature: (Ljava/lang/String;)Ljava/lang/Class<*>;
MethodParameters:
Name Flags
name
public byte[] getClassBytes(java.lang.String);
descriptor: (Ljava/lang/String;)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.core.impl.verticle.CompilingClassLoader.fileManager:Lio/vertx/core/impl/verticle/MemoryFileManager;
aload 1
invokevirtual io.vertx.core.impl.verticle.MemoryFileManager.getCompiledClass:(Ljava/lang/String;)[B
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/impl/verticle/CompilingClassLoader;
0 1 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
}
SourceFile: "CompilingClassLoader.java"
InnerClasses:
public abstract CompilationTask = javax.tools.JavaCompiler$CompilationTask of javax.tools.JavaCompiler
public abstract Location = javax.tools.JavaFileManager$Location of javax.tools.JavaFileManager
public final Kind = javax.tools.JavaFileObject$Kind of javax.tools.JavaFileObject