public class jdk.tools.jaotc.test.collect.jar.JarSourceProviderTest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.tools.jaotc.test.collect.jar.JarSourceProviderTest
super_class: java.lang.Object
{
private jdk.tools.jaotc.test.collect.FakeFileSupport fileSupport;
descriptor: Ljdk/tools/jaotc/test/collect/FakeFileSupport;
flags: (0x0002) ACC_PRIVATE
private jdk.tools.jaotc.collect.jar.JarSourceProvider target;
descriptor: Ljdk/tools/jaotc/collect/jar/JarSourceProvider;
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jaotc/test/collect/jar/JarSourceProviderTest;
public void setUp();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
new jdk.tools.jaotc.test.collect.FakeFileSupport
dup
iconst_0
anewarray java.lang.String
invokestatic jdk.tools.jaotc.test.collect.Utils.set:([Ljava/lang/Object;)Ljava/util/Set;
iconst_0
anewarray java.lang.String
invokestatic jdk.tools.jaotc.test.collect.Utils.set:([Ljava/lang/Object;)Ljava/util/Set;
invokespecial jdk.tools.jaotc.test.collect.FakeFileSupport.<init>:(Ljava/util/Set;Ljava/util/Set;)V
putfield jdk.tools.jaotc.test.collect.jar.JarSourceProviderTest.fileSupport:Ljdk/tools/jaotc/test/collect/FakeFileSupport;
1: aload 0
new jdk.tools.jaotc.collect.jar.JarSourceProvider
dup
aload 0
getfield jdk.tools.jaotc.test.collect.jar.JarSourceProviderTest.fileSupport:Ljdk/tools/jaotc/test/collect/FakeFileSupport;
invokespecial jdk.tools.jaotc.collect.jar.JarSourceProvider.<init>:(Ljdk/tools/jaotc/collect/FileSupport;)V
putfield jdk.tools.jaotc.test.collect.jar.JarSourceProviderTest.target:Ljdk/tools/jaotc/collect/jar/JarSourceProvider;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/tools/jaotc/test/collect/jar/JarSourceProviderTest;
Exceptions:
throws java.lang.Exception
RuntimeVisibleAnnotations:
org.junit.Before()
public void itShouldUseSearchPathToFindPath();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: new jdk.tools.jaotc.test.collect.FakeSearchPath
dup
aconst_null
invokespecial jdk.tools.jaotc.test.collect.FakeSearchPath.<init>:(Ljava/lang/String;)V
astore 1
start local 1 1: aload 0
getfield jdk.tools.jaotc.test.collect.jar.JarSourceProviderTest.target:Ljdk/tools/jaotc/collect/jar/JarSourceProvider;
ldc "hello"
aload 1
invokevirtual jdk.tools.jaotc.collect.jar.JarSourceProvider.findSource:(Ljava/lang/String;Ljdk/tools/jaotc/collect/SearchPath;)Ljdk/tools/jaotc/collect/ClassSource;
pop
iconst_1
anewarray java.lang.String
dup
iconst_0
2: ldc "hello"
aastore
invokestatic jdk.tools.jaotc.test.collect.Utils.set:([Ljava/lang/Object;)Ljava/util/Set;
aload 1
getfield jdk.tools.jaotc.test.collect.FakeSearchPath.entries:Ljava/util/Set;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/tools/jaotc/test/collect/jar/JarSourceProviderTest;
1 4 1 searchPath Ljdk/tools/jaotc/test/collect/FakeSearchPath;
RuntimeVisibleAnnotations:
org.junit.Test()
public void itShouldReturnNullIfPathIsNull();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jaotc.test.collect.jar.JarSourceProviderTest.target:Ljdk/tools/jaotc/collect/jar/JarSourceProvider;
ldc "foobar"
new jdk.tools.jaotc.test.collect.FakeSearchPath
dup
aconst_null
invokespecial jdk.tools.jaotc.test.collect.FakeSearchPath.<init>:(Ljava/lang/String;)V
invokevirtual jdk.tools.jaotc.collect.jar.JarSourceProvider.findSource:(Ljava/lang/String;Ljdk/tools/jaotc/collect/SearchPath;)Ljdk/tools/jaotc/collect/ClassSource;
astore 1
start local 1 1: aload 1
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/tools/jaotc/test/collect/jar/JarSourceProviderTest;
1 3 1 source Ljdk/tools/jaotc/collect/ClassSource;
RuntimeVisibleAnnotations:
org.junit.Test()
public void itShouldReturnNullIfPathIsDirectory();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jaotc.test.collect.jar.JarSourceProviderTest.fileSupport:Ljdk/tools/jaotc/test/collect/FakeFileSupport;
ldc "hello/foobar"
invokevirtual jdk.tools.jaotc.test.collect.FakeFileSupport.addDirectory:(Ljava/lang/String;)V
1: aload 0
getfield jdk.tools.jaotc.test.collect.jar.JarSourceProviderTest.target:Ljdk/tools/jaotc/collect/jar/JarSourceProvider;
ldc "foobar"
new jdk.tools.jaotc.test.collect.FakeSearchPath
dup
ldc "hello/foobar"
invokespecial jdk.tools.jaotc.test.collect.FakeSearchPath.<init>:(Ljava/lang/String;)V
invokevirtual jdk.tools.jaotc.collect.jar.JarSourceProvider.findSource:(Ljava/lang/String;Ljdk/tools/jaotc/collect/SearchPath;)Ljdk/tools/jaotc/collect/ClassSource;
astore 1
start local 1 2: aload 1
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
iconst_1
anewarray java.lang.String
dup
iconst_0
3: ldc "hello/foobar"
invokestatic jdk.tools.jaotc.test.collect.Utils.mkpath:(Ljava/lang/String;)Ljava/lang/String;
aastore
invokestatic jdk.tools.jaotc.test.collect.Utils.set:([Ljava/lang/Object;)Ljava/util/Set;
aload 0
getfield jdk.tools.jaotc.test.collect.jar.JarSourceProviderTest.fileSupport:Ljdk/tools/jaotc/test/collect/FakeFileSupport;
invokevirtual jdk.tools.jaotc.test.collect.FakeFileSupport.getCheckedDirectory:()Ljava/util/Set;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/tools/jaotc/test/collect/jar/JarSourceProviderTest;
2 5 1 source Ljdk/tools/jaotc/collect/ClassSource;
RuntimeVisibleAnnotations:
org.junit.Test()
public void itShouldReturnNullIfUnableToMakeJarFileSystem();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jaotc.test.collect.jar.JarSourceProviderTest.fileSupport:Ljdk/tools/jaotc/test/collect/FakeFileSupport;
aconst_null
invokevirtual jdk.tools.jaotc.test.collect.FakeFileSupport.setJarFileSystemRoot:(Ljava/nio/file/Path;)V
1: aload 0
getfield jdk.tools.jaotc.test.collect.jar.JarSourceProviderTest.target:Ljdk/tools/jaotc/collect/jar/JarSourceProvider;
ldc "foobar"
new jdk.tools.jaotc.test.collect.FakeSearchPath
dup
ldc "foo/bar"
invokespecial jdk.tools.jaotc.test.collect.FakeSearchPath.<init>:(Ljava/lang/String;)V
invokevirtual jdk.tools.jaotc.collect.jar.JarSourceProvider.findSource:(Ljava/lang/String;Ljdk/tools/jaotc/collect/SearchPath;)Ljdk/tools/jaotc/collect/ClassSource;
astore 1
start local 1 2: iconst_1
anewarray java.lang.String
dup
iconst_0
3: ldc "foo/bar"
invokestatic jdk.tools.jaotc.test.collect.Utils.mkpath:(Ljava/lang/String;)Ljava/lang/String;
aastore
invokestatic jdk.tools.jaotc.test.collect.Utils.set:([Ljava/lang/Object;)Ljava/util/Set;
aload 0
getfield jdk.tools.jaotc.test.collect.jar.JarSourceProviderTest.fileSupport:Ljdk/tools/jaotc/test/collect/FakeFileSupport;
invokevirtual jdk.tools.jaotc.test.collect.FakeFileSupport.getCheckedJarFileSystemRoots:()Ljava/util/Set;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
4: aload 1
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/tools/jaotc/test/collect/jar/JarSourceProviderTest;
2 6 1 result Ljdk/tools/jaotc/collect/ClassSource;
RuntimeVisibleAnnotations:
org.junit.Test()
public void itShouldReturnNullIfNotValidJarProvider();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: aload 0
new jdk.tools.jaotc.test.collect.jar.JarSourceProviderTest$1
dup
aload 0
iconst_0
anewarray java.lang.String
invokestatic jdk.tools.jaotc.test.collect.Utils.set:([Ljava/lang/Object;)Ljava/util/Set;
iconst_0
anewarray java.lang.String
invokestatic jdk.tools.jaotc.test.collect.Utils.set:([Ljava/lang/Object;)Ljava/util/Set;
invokespecial jdk.tools.jaotc.test.collect.jar.JarSourceProviderTest$1.<init>:(Ljdk/tools/jaotc/test/collect/jar/JarSourceProviderTest;Ljava/util/Set;Ljava/util/Set;)V
putfield jdk.tools.jaotc.test.collect.jar.JarSourceProviderTest.fileSupport:Ljdk/tools/jaotc/test/collect/FakeFileSupport;
1: aload 0
getfield jdk.tools.jaotc.test.collect.jar.JarSourceProviderTest.fileSupport:Ljdk/tools/jaotc/test/collect/FakeFileSupport;
aconst_null
invokevirtual jdk.tools.jaotc.test.collect.FakeFileSupport.setJarFileSystemRoot:(Ljava/nio/file/Path;)V
2: aload 0
new jdk.tools.jaotc.collect.jar.JarSourceProvider
dup
aload 0
getfield jdk.tools.jaotc.test.collect.jar.JarSourceProviderTest.fileSupport:Ljdk/tools/jaotc/test/collect/FakeFileSupport;
invokespecial jdk.tools.jaotc.collect.jar.JarSourceProvider.<init>:(Ljdk/tools/jaotc/collect/FileSupport;)V
putfield jdk.tools.jaotc.test.collect.jar.JarSourceProviderTest.target:Ljdk/tools/jaotc/collect/jar/JarSourceProvider;
3: aload 0
getfield jdk.tools.jaotc.test.collect.jar.JarSourceProviderTest.target:Ljdk/tools/jaotc/collect/jar/JarSourceProvider;
ldc "foobar"
new jdk.tools.jaotc.test.collect.FakeSearchPath
dup
ldc "foo/bar"
invokespecial jdk.tools.jaotc.test.collect.FakeSearchPath.<init>:(Ljava/lang/String;)V
invokevirtual jdk.tools.jaotc.collect.jar.JarSourceProvider.findSource:(Ljava/lang/String;Ljdk/tools/jaotc/collect/SearchPath;)Ljdk/tools/jaotc/collect/ClassSource;
astore 1
start local 1 4: iconst_1
anewarray java.lang.String
dup
iconst_0
5: ldc "foo/bar"
invokestatic jdk.tools.jaotc.test.collect.Utils.mkpath:(Ljava/lang/String;)Ljava/lang/String;
aastore
invokestatic jdk.tools.jaotc.test.collect.Utils.set:([Ljava/lang/Object;)Ljava/util/Set;
aload 0
getfield jdk.tools.jaotc.test.collect.jar.JarSourceProviderTest.fileSupport:Ljdk/tools/jaotc/test/collect/FakeFileSupport;
invokevirtual jdk.tools.jaotc.test.collect.FakeFileSupport.getCheckedJarFileSystemRoots:()Ljava/util/Set;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
6: aload 1
invokestatic org.junit.Assert.assertNull:(Ljava/lang/Object;)V
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/tools/jaotc/test/collect/jar/JarSourceProviderTest;
4 8 1 result Ljdk/tools/jaotc/collect/ClassSource;
RuntimeVisibleAnnotations:
org.junit.Test()
public void itShouldReturnSourceWhenAllIsValid();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jaotc.test.collect.jar.JarSourceProviderTest.fileSupport:Ljdk/tools/jaotc/test/collect/FakeFileSupport;
ldc "some/bar"
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
invokevirtual jdk.tools.jaotc.test.collect.FakeFileSupport.setJarFileSystemRoot:(Ljava/nio/file/Path;)V
1: aload 0
getfield jdk.tools.jaotc.test.collect.jar.JarSourceProviderTest.target:Ljdk/tools/jaotc/collect/jar/JarSourceProvider;
ldc "foobar"
new jdk.tools.jaotc.test.collect.FakeSearchPath
dup
ldc "this/bar"
invokespecial jdk.tools.jaotc.test.collect.FakeSearchPath.<init>:(Ljava/lang/String;)V
invokevirtual jdk.tools.jaotc.collect.jar.JarSourceProvider.findSource:(Ljava/lang/String;Ljdk/tools/jaotc/collect/SearchPath;)Ljdk/tools/jaotc/collect/ClassSource;
astore 1
start local 1 2: iconst_1
anewarray java.lang.String
dup
iconst_0
3: ldc "this/bar"
invokestatic jdk.tools.jaotc.test.collect.Utils.mkpath:(Ljava/lang/String;)Ljava/lang/String;
aastore
invokestatic jdk.tools.jaotc.test.collect.Utils.set:([Ljava/lang/Object;)Ljava/util/Set;
aload 0
getfield jdk.tools.jaotc.test.collect.jar.JarSourceProviderTest.fileSupport:Ljdk/tools/jaotc/test/collect/FakeFileSupport;
invokevirtual jdk.tools.jaotc.test.collect.FakeFileSupport.getClassloaderPaths:()Ljava/util/Set;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
4: new java.lang.StringBuilder
dup
ldc "jar:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "this/bar"
invokestatic jdk.tools.jaotc.test.collect.Utils.mkpath:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokestatic org.junit.Assert.assertEquals:(Ljava/lang/Object;Ljava/lang/Object;)V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/tools/jaotc/test/collect/jar/JarSourceProviderTest;
2 6 1 result Ljdk/tools/jaotc/collect/ClassSource;
RuntimeVisibleAnnotations:
org.junit.Test()
}
SourceFile: "JarSourceProviderTest.java"
NestMembers:
jdk.tools.jaotc.test.collect.jar.JarSourceProviderTest$1
InnerClasses:
jdk.tools.jaotc.test.collect.jar.JarSourceProviderTest$1