Wed, 19 May 2010 16:43:06 +0100
6948381: javac Null Pointer Exception in Types.makeCompoundType
Summary: Race condition between symbol completion and attribution of import statements causes NPE when creating intersection type
Reviewed-by: jjg
mcimadamore@563 | 1 | /* |
mcimadamore@563 | 2 | * Copyright 2010 Sun Microsystems, Inc. All Rights Reserved. |
mcimadamore@563 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
mcimadamore@563 | 4 | * |
mcimadamore@563 | 5 | * This code is free software; you can redistribute it and/or modify it |
mcimadamore@563 | 6 | * under the terms of the GNU General Public License version 2 only, as |
mcimadamore@563 | 7 | * published by the Free Software Foundation. |
mcimadamore@563 | 8 | * |
mcimadamore@563 | 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
mcimadamore@563 | 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
mcimadamore@563 | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
mcimadamore@563 | 12 | * version 2 for more details (a copy is included in the LICENSE file that |
mcimadamore@563 | 13 | * accompanied this code). |
mcimadamore@563 | 14 | * |
mcimadamore@563 | 15 | * You should have received a copy of the GNU General Public License version |
mcimadamore@563 | 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
mcimadamore@563 | 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
mcimadamore@563 | 18 | * |
mcimadamore@563 | 19 | * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
mcimadamore@563 | 20 | * CA 95054 USA or visit www.sun.com if you need additional information or |
mcimadamore@563 | 21 | * have any questions. |
mcimadamore@563 | 22 | */ |
mcimadamore@563 | 23 | |
mcimadamore@563 | 24 | package npe; |
mcimadamore@563 | 25 | |
mcimadamore@563 | 26 | import npe.B.*; |
mcimadamore@563 | 27 | |
mcimadamore@563 | 28 | public interface A {} |