From 0a5665b53a9fe3892fe63642de04d13dae0e7eed Mon Sep 17 00:00:00 2001 From: Paul Govereau Date: Tue, 22 Apr 2014 15:59:33 -0700 Subject: [PATCH] 8041521: JDK-8034245 breaks a bootcycle build Reviewed-by: jjg --- langtools/make/tools/genstubs/GenStubs.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/langtools/make/tools/genstubs/GenStubs.java b/langtools/make/tools/genstubs/GenStubs.java index ffa95c97792..9f8fc7a7a59 100644 --- a/langtools/make/tools/genstubs/GenStubs.java +++ b/langtools/make/tools/genstubs/GenStubs.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2009, 2014, 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 @@ -316,7 +316,8 @@ public class GenStubs { } defs.add(def); } - return m.TopLevel(tree.packageAnnotations, tree.pid, defs.toList()); + tree.defs = tree.defs.intersect(defs.toList()); + return tree; } @Override