public final class com.sun.jndi.cosnaming.ExceptionMapper
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.sun.jndi.cosnaming.ExceptionMapper
super_class: java.lang.Object
{
private static final boolean debug;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
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 Lcom/sun/jndi/cosnaming/ExceptionMapper;
public static final javax.naming.NamingException mapException(java.lang.Exception, com.sun.jndi.cosnaming.CNCtx, org.omg.CosNaming.NameComponent[]);
descriptor: (Ljava/lang/Exception;Lcom/sun/jndi/cosnaming/CNCtx;[Lorg/omg/CosNaming/NameComponent;)Ljavax/naming/NamingException;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=9, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
instanceof javax.naming.NamingException
ifeq 2
1: aload 0
checkcast javax.naming.NamingException
areturn
2: StackMap locals:
StackMap stack:
aload 0
instanceof java.lang.RuntimeException
ifeq 4
3: aload 0
checkcast java.lang.RuntimeException
athrow
4: StackMap locals:
StackMap stack:
aload 0
instanceof org.omg.CosNaming.NamingContextPackage.NotFound
ifeq 9
5: aload 1
getfield com.sun.jndi.cosnaming.CNCtx.federation:Z
ifeq 7
6: aload 0
checkcast org.omg.CosNaming.NamingContextPackage.NotFound
aload 1
aload 2
invokestatic com.sun.jndi.cosnaming.ExceptionMapper.tryFed:(Lorg/omg/CosNaming/NamingContextPackage/NotFound;Lcom/sun/jndi/cosnaming/CNCtx;[Lorg/omg/CosNaming/NameComponent;)Ljavax/naming/NamingException;
areturn
7: StackMap locals:
StackMap stack:
new javax.naming.NameNotFoundException
dup
invokespecial javax.naming.NameNotFoundException.<init>:()V
astore 3
start local 3 8: goto 35
end local 3 StackMap locals:
StackMap stack:
9: aload 0
instanceof org.omg.CosNaming.NamingContextPackage.CannotProceed
ifeq 25
10: new javax.naming.CannotProceedException
dup
invokespecial javax.naming.CannotProceedException.<init>:()V
astore 3
start local 3 11: aload 0
checkcast org.omg.CosNaming.NamingContextPackage.CannotProceed
getfield org.omg.CosNaming.NamingContextPackage.CannotProceed.cxt:Lorg/omg/CosNaming/NamingContext;
astore 4
start local 4 12: aload 0
checkcast org.omg.CosNaming.NamingContextPackage.CannotProceed
getfield org.omg.CosNaming.NamingContextPackage.CannotProceed.rest_of_name:[Lorg/omg/CosNaming/NameComponent;
astore 5
start local 5 13: aload 2
ifnull 22
aload 2
arraylength
aload 5
arraylength
if_icmple 22
14: aload 2
arraylength
aload 5
arraylength
isub
anewarray org.omg.CosNaming.NameComponent
15: astore 6
start local 6 16: aload 2
iconst_0
aload 6
iconst_0
aload 6
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
17: aload 3
new com.sun.jndi.cosnaming.CNCtx
dup
aload 1
getfield com.sun.jndi.cosnaming.CNCtx._orb:Lorg/omg/CORBA/ORB;
aload 1
getfield com.sun.jndi.cosnaming.CNCtx.orbTracker:Lcom/sun/jndi/cosnaming/OrbReuseTracker;
aload 4
18: aload 1
getfield com.sun.jndi.cosnaming.CNCtx._env:Ljava/util/Hashtable;
19: aload 1
aload 6
invokevirtual com.sun.jndi.cosnaming.CNCtx.makeFullName:([Lorg/omg/CosNaming/NameComponent;)[Lorg/omg/CosNaming/NameComponent;
invokespecial com.sun.jndi.cosnaming.CNCtx.<init>:(Lorg/omg/CORBA/ORB;Lcom/sun/jndi/cosnaming/OrbReuseTracker;Lorg/omg/CosNaming/NamingContext;Ljava/util/Hashtable;[Lorg/omg/CosNaming/NameComponent;)V
20: invokevirtual javax.naming.NamingException.setResolvedObj:(Ljava/lang/Object;)V
end local 6 21: goto 23
22: StackMap locals: javax.naming.NamingException org.omg.CosNaming.NamingContext org.omg.CosNaming.NameComponent[]
StackMap stack:
aload 3
aload 1
invokevirtual javax.naming.NamingException.setResolvedObj:(Ljava/lang/Object;)V
23: StackMap locals:
StackMap stack:
aload 3
aload 5
invokestatic com.sun.jndi.cosnaming.CNNameParser.cosNameToName:([Lorg/omg/CosNaming/NameComponent;)Ljavax/naming/Name;
invokevirtual javax.naming.NamingException.setRemainingName:(Ljavax/naming/Name;)V
end local 5 end local 4 24: goto 35
end local 3 StackMap locals:
StackMap stack:
25: aload 0
instanceof org.omg.CosNaming.NamingContextPackage.InvalidName
ifeq 28
26: new javax.naming.InvalidNameException
dup
invokespecial javax.naming.InvalidNameException.<init>:()V
astore 3
start local 3 27: goto 35
end local 3 StackMap locals:
StackMap stack:
28: aload 0
instanceof org.omg.CosNaming.NamingContextPackage.AlreadyBound
ifeq 31
29: new javax.naming.NameAlreadyBoundException
dup
invokespecial javax.naming.NameAlreadyBoundException.<init>:()V
astore 3
start local 3 30: goto 35
end local 3 StackMap locals:
StackMap stack:
31: aload 0
instanceof org.omg.CosNaming.NamingContextPackage.NotEmpty
ifeq 34
32: new javax.naming.ContextNotEmptyException
dup
invokespecial javax.naming.ContextNotEmptyException.<init>:()V
astore 3
start local 3 33: goto 35
end local 3 34: StackMap locals:
StackMap stack:
new javax.naming.NamingException
dup
ldc "Unknown reasons"
invokespecial javax.naming.NamingException.<init>:(Ljava/lang/String;)V
astore 3
start local 3 35: StackMap locals: javax.naming.NamingException
StackMap stack:
aload 3
aload 0
invokevirtual javax.naming.NamingException.setRootCause:(Ljava/lang/Throwable;)V
36: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 37 0 e Ljava/lang/Exception;
0 37 1 ctx Lcom/sun/jndi/cosnaming/CNCtx;
0 37 2 inputName [Lorg/omg/CosNaming/NameComponent;
8 9 3 ne Ljavax/naming/NamingException;
11 25 3 ne Ljavax/naming/NamingException;
27 28 3 ne Ljavax/naming/NamingException;
30 31 3 ne Ljavax/naming/NamingException;
33 34 3 ne Ljavax/naming/NamingException;
35 37 3 ne Ljavax/naming/NamingException;
12 24 4 nc Lorg/omg/CosNaming/NamingContext;
13 24 5 rest [Lorg/omg/CosNaming/NameComponent;
16 21 6 resolvedName [Lorg/omg/CosNaming/NameComponent;
Exceptions:
throws javax.naming.NamingException
MethodParameters:
Name Flags
e
ctx
inputName
private static final javax.naming.NamingException tryFed(org.omg.CosNaming.NamingContextPackage.NotFound, com.sun.jndi.cosnaming.CNCtx, org.omg.CosNaming.NameComponent[]);
descriptor: (Lorg/omg/CosNaming/NamingContextPackage/NotFound;Lcom/sun/jndi/cosnaming/CNCtx;[Lorg/omg/CosNaming/NameComponent;)Ljavax/naming/NamingException;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Code:
stack=5, locals=13, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.omg.CosNaming.NamingContextPackage.NotFound.rest_of_name:[Lorg/omg/CosNaming/NameComponent;
astore 3
start local 3 1: aload 3
arraylength
iconst_1
if_icmpne 11
aload 2
ifnull 11
2: aload 2
aload 2
arraylength
iconst_1
isub
aaload
astore 4
start local 4 3: aload 3
iconst_0
aaload
getfield org.omg.CosNaming.NameComponent.id:Ljava/lang/String;
aload 4
getfield org.omg.CosNaming.NameComponent.id:Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 7
4: aload 3
iconst_0
aaload
getfield org.omg.CosNaming.NameComponent.kind:Ljava/lang/String;
ifnull 7
5: aload 3
iconst_0
aaload
getfield org.omg.CosNaming.NameComponent.kind:Ljava/lang/String;
aload 4
getfield org.omg.CosNaming.NameComponent.kind:Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 7
6: goto 11
7: StackMap locals: org.omg.CosNaming.NameComponent[] org.omg.CosNaming.NameComponent
StackMap stack:
new javax.naming.NameNotFoundException
dup
invokespecial javax.naming.NameNotFoundException.<init>:()V
astore 5
start local 5 8: aload 5
aload 3
invokestatic com.sun.jndi.cosnaming.CNNameParser.cosNameToName:([Lorg/omg/CosNaming/NameComponent;)Ljavax/naming/Name;
invokevirtual javax.naming.NamingException.setRemainingName:(Ljavax/naming/Name;)V
9: aload 5
aload 0
invokevirtual javax.naming.NamingException.setRootCause:(Ljava/lang/Throwable;)V
10: aload 5
athrow
end local 5 end local 4 11: StackMap locals:
StackMap stack:
aconst_null
astore 4
start local 4 12: iconst_0
istore 5
start local 5 13: aload 2
ifnull 27
aload 2
arraylength
aload 3
arraylength
if_icmplt 27
14: aload 0
getfield org.omg.CosNaming.NamingContextPackage.NotFound.why:Lorg/omg/CosNaming/NamingContextPackage/NotFoundReason;
getstatic org.omg.CosNaming.NamingContextPackage.NotFoundReason.not_context:Lorg/omg/CosNaming/NamingContextPackage/NotFoundReason;
if_acmpne 23
15: aload 2
arraylength
aload 3
arraylength
iconst_1
isub
isub
istore 5
16: aload 3
arraylength
iconst_1
if_icmpne 19
17: aconst_null
astore 3
18: goto 24
19: StackMap locals: org.omg.CosNaming.NameComponent[] int
StackMap stack:
aload 3
arraylength
iconst_1
isub
anewarray org.omg.CosNaming.NameComponent
astore 6
start local 6 20: aload 3
iconst_1
aload 6
iconst_0
aload 6
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
21: aload 6
astore 3
end local 6 22: goto 24
23: StackMap locals:
StackMap stack:
aload 2
arraylength
aload 3
arraylength
isub
istore 5
24: StackMap locals:
StackMap stack:
iload 5
ifle 27
25: iload 5
anewarray org.omg.CosNaming.NameComponent
astore 4
26: aload 2
iconst_0
aload 4
iconst_0
iload 5
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
27: StackMap locals:
StackMap stack:
new javax.naming.CannotProceedException
dup
invokespecial javax.naming.CannotProceedException.<init>:()V
astore 6
start local 6 28: aload 6
aload 0
invokevirtual javax.naming.CannotProceedException.setRootCause:(Ljava/lang/Throwable;)V
29: aload 3
ifnull 31
aload 3
arraylength
ifle 31
30: aload 6
aload 3
invokestatic com.sun.jndi.cosnaming.CNNameParser.cosNameToName:([Lorg/omg/CosNaming/NameComponent;)Ljavax/naming/Name;
invokevirtual javax.naming.CannotProceedException.setRemainingName:(Ljavax/naming/Name;)V
31: StackMap locals: javax.naming.CannotProceedException
StackMap stack:
aload 6
aload 1
getfield com.sun.jndi.cosnaming.CNCtx._env:Ljava/util/Hashtable;
invokevirtual javax.naming.CannotProceedException.setEnvironment:(Ljava/util/Hashtable;)V
32: aload 4
ifnull 33
aload 1
aload 4
invokevirtual com.sun.jndi.cosnaming.CNCtx.callResolve:([Lorg/omg/CosNaming/NameComponent;)Ljava/lang/Object;
goto 34
StackMap locals:
StackMap stack:
33: aload 1
34: StackMap locals:
StackMap stack: java.lang.Object
astore 7
start local 7 35: aload 7
instanceof javax.naming.Context
ifeq 44
36: new com.sun.jndi.cosnaming.ExceptionMapper$1
dup
ldc "nns"
aload 7
invokespecial com.sun.jndi.cosnaming.ExceptionMapper$1.<init>:(Ljava/lang/String;Ljava/lang/Object;)V
astore 8
start local 8 37: new javax.naming.Reference
dup
ldc "java.lang.Object"
aload 8
invokespecial javax.naming.Reference.<init>:(Ljava/lang/String;Ljavax/naming/RefAddr;)V
astore 9
start local 9 38: new javax.naming.CompositeName
dup
invokespecial javax.naming.CompositeName.<init>:()V
astore 10
start local 10 39: aload 10
ldc ""
invokevirtual javax.naming.CompositeName.add:(Ljava/lang/String;)Ljavax/naming/Name;
pop
40: aload 6
aload 9
invokevirtual javax.naming.CannotProceedException.setResolvedObj:(Ljava/lang/Object;)V
41: aload 6
aload 10
invokevirtual javax.naming.CannotProceedException.setAltName:(Ljavax/naming/Name;)V
42: aload 6
aload 7
checkcast javax.naming.Context
invokevirtual javax.naming.CannotProceedException.setAltNameCtx:(Ljavax/naming/Context;)V
43: aload 6
areturn
end local 10 end local 9 end local 8 44: StackMap locals: java.lang.Object
StackMap stack:
aload 4
invokestatic com.sun.jndi.cosnaming.CNNameParser.cosNameToName:([Lorg/omg/CosNaming/NameComponent;)Ljavax/naming/Name;
astore 8
start local 8 45: aconst_null
astore 9
start local 9 46: aload 7
invokestatic com.sun.jndi.toolkit.corba.CorbaUtils.isObjectFactoryTrusted:(Ljava/lang/Object;)Z
ifeq 59
47: aload 7
48: aload 8
aload 1
aload 1
getfield com.sun.jndi.cosnaming.CNCtx._env:Ljava/util/Hashtable;
49: invokestatic javax.naming.spi.NamingManager.getObjectInstance:(Ljava/lang/Object;Ljavax/naming/Name;Ljavax/naming/Context;Ljava/util/Hashtable;)Ljava/lang/Object;
astore 9
50: goto 59
StackMap locals: org.omg.CosNaming.NamingContextPackage.NotFound com.sun.jndi.cosnaming.CNCtx org.omg.CosNaming.NameComponent[] org.omg.CosNaming.NameComponent[] org.omg.CosNaming.NameComponent[] int javax.naming.CannotProceedException java.lang.Object javax.naming.Name java.lang.Object
StackMap stack: javax.naming.NamingException
51: astore 10
start local 10 52: aload 10
athrow
end local 10 53: StackMap locals:
StackMap stack: java.lang.Exception
astore 10
start local 10 54: new javax.naming.NamingException
dup
55: ldc "problem generating object using object factory"
56: invokespecial javax.naming.NamingException.<init>:(Ljava/lang/String;)V
astore 11
start local 11 57: aload 11
aload 10
invokevirtual javax.naming.NamingException.setRootCause:(Ljava/lang/Throwable;)V
58: aload 11
athrow
end local 11 end local 10 59: StackMap locals:
StackMap stack:
aload 9
instanceof javax.naming.Context
ifeq 62
60: aload 6
aload 9
invokevirtual javax.naming.CannotProceedException.setResolvedObj:(Ljava/lang/Object;)V
61: goto 69
62: StackMap locals:
StackMap stack:
aload 8
ldc ""
invokeinterface javax.naming.Name.add:(Ljava/lang/String;)Ljavax/naming/Name;
pop
63: aload 6
aload 8
invokevirtual javax.naming.CannotProceedException.setAltName:(Ljavax/naming/Name;)V
64: aload 9
astore 10
start local 10 65: new com.sun.jndi.cosnaming.ExceptionMapper$2
dup
ldc "nns"
aload 10
invokespecial com.sun.jndi.cosnaming.ExceptionMapper$2.<init>:(Ljava/lang/String;Ljava/lang/Object;)V
astore 11
start local 11 66: new javax.naming.Reference
dup
ldc "java.lang.Object"
aload 11
invokespecial javax.naming.Reference.<init>:(Ljava/lang/String;Ljavax/naming/RefAddr;)V
astore 12
start local 12 67: aload 6
aload 12
invokevirtual javax.naming.CannotProceedException.setResolvedObj:(Ljava/lang/Object;)V
68: aload 6
aload 1
invokevirtual javax.naming.CannotProceedException.setAltNameCtx:(Ljavax/naming/Context;)V
end local 12 end local 11 end local 10 69: StackMap locals:
StackMap stack:
aload 6
areturn
end local 9 end local 8 end local 7 end local 6 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 70 0 e Lorg/omg/CosNaming/NamingContextPackage/NotFound;
0 70 1 ctx Lcom/sun/jndi/cosnaming/CNCtx;
0 70 2 inputName [Lorg/omg/CosNaming/NameComponent;
1 70 3 rest [Lorg/omg/CosNaming/NameComponent;
3 11 4 lastIn Lorg/omg/CosNaming/NameComponent;
8 11 5 ne Ljavax/naming/NamingException;
12 70 4 resolvedName [Lorg/omg/CosNaming/NameComponent;
13 70 5 len I
20 22 6 tmp [Lorg/omg/CosNaming/NameComponent;
28 70 6 cpe Ljavax/naming/CannotProceedException;
35 70 7 resolvedObj Ljava/lang/Object;
37 44 8 addr Ljavax/naming/RefAddr;
38 44 9 ref Ljavax/naming/Reference;
39 44 10 cname Ljavax/naming/CompositeName;
45 70 8 cname Ljavax/naming/Name;
46 70 9 resolvedObj2 Ljava/lang/Object;
52 53 10 ge Ljavax/naming/NamingException;
54 59 10 ge Ljava/lang/Exception;
57 59 11 ne Ljavax/naming/NamingException;
65 69 10 rf2 Ljava/lang/Object;
66 69 11 addr Ljavax/naming/RefAddr;
67 69 12 ref Ljavax/naming/Reference;
Exception table:
from to target type
46 50 51 Class javax.naming.NamingException
46 50 53 Class java.lang.Exception
Exceptions:
throws javax.naming.NamingException
MethodParameters:
Name Flags
e
ctx
inputName
}
SourceFile: "ExceptionMapper.java"
NestMembers:
com.sun.jndi.cosnaming.ExceptionMapper$1 com.sun.jndi.cosnaming.ExceptionMapper$2
InnerClasses:
com.sun.jndi.cosnaming.ExceptionMapper$1
com.sun.jndi.cosnaming.ExceptionMapper$2