diff -r 891b88acf47a -r 95d29b99e5b3 src/share/classes/com/sun/tools/javadoc/PackageDocImpl.java --- a/src/share/classes/com/sun/tools/javadoc/PackageDocImpl.java Thu Apr 18 19:58:45 2013 -0700 +++ b/src/share/classes/com/sun/tools/javadoc/PackageDocImpl.java Thu Apr 18 20:00:14 2013 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -334,12 +334,17 @@ * Get package name. */ public String qualifiedName() { - Name fullname = sym.getQualifiedName(); - // Some bogus tests depend on the interned "" being returned. - // See 6457276. - return fullname.isEmpty() ? "" : fullname.toString(); + if (qualifiedName == null) { + Name fullname = sym.getQualifiedName(); + // Some bogus tests depend on the interned "" being returned. + // See 6457276. + qualifiedName = fullname.isEmpty() ? "" : fullname.toString(); + } + return qualifiedName; } + private String qualifiedName; + /** * set doc path for an unzipped directory */