hotspot/agent/src/share/classes/sun/jvm/hotspot/jdi/ReferenceTypeImpl.java
changeset 13201 69f157caabcc
parent 10517 f92c9ff3a15f
child 13728 882756847a04
equal deleted inserted replaced
13200:7b506e7b406e 13201:69f157caabcc
     1 /*
     1 /*
     2  * Copyright (c) 2002, 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   686         SDE sde = null;
   686         SDE sde = null;
   687         sde = (sdeRef == null) ?  null : (SDE)sdeRef.get();
   687         sde = (sdeRef == null) ?  null : (SDE)sdeRef.get();
   688         if (sde == null) {
   688         if (sde == null) {
   689            String extension = null;
   689            String extension = null;
   690            if (saKlass instanceof InstanceKlass) {
   690            if (saKlass instanceof InstanceKlass) {
   691               Symbol sdeSym = ((InstanceKlass)saKlass).getSourceDebugExtension();
   691               extension = ((InstanceKlass)saKlass).getSourceDebugExtension();
   692               extension = (sdeSym != null)? sdeSym.asString() : null;
       
   693            }
   692            }
   694            if (extension == null) {
   693            if (extension == null) {
   695               sde = NO_SDE_INFO_MARK;
   694               sde = NO_SDE_INFO_MARK;
   696            } else {
   695            } else {
   697               sde = new SDE(extension);
   696               sde = new SDE(extension);