langtools/src/share/classes/com/sun/tools/javac/sym/CreateSymbols.java
changeset 18010 604faee85350
parent 15724 3063fb01c8a1
child 20607 b094c3a8c917
equal deleted inserted replaced
18009:f47ea7c9c3f4 18010:604faee85350
     1 /*
     1 /*
     2  * Copyright (c) 2006, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2006, 2013, 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.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   223                 System.err.println("Ignoring (bad) " + sym.getQualifiedName());
   223                 System.err.println("Ignoring (bad) " + sym.getQualifiedName());
   224                 continue;
   224                 continue;
   225             }
   225             }
   226             ClassSymbol cs = (ClassSymbol) sym;
   226             ClassSymbol cs = (ClassSymbol) sym;
   227             if (addLegacyAnnotation) {
   227             if (addLegacyAnnotation) {
   228                 cs.annotations.prepend(List.of(proprietaryAnno));
   228                 cs.prependAttributes(List.of(proprietaryAnno));
   229             }
   229             }
   230             int p = profiles.getProfile(cs.fullname.toString().replace(".", "/"));
   230             int p = profiles.getProfile(cs.fullname.toString().replace(".", "/"));
   231             if (0 < p && p < profileAnnos.length)
   231             if (0 < p && p < profileAnnos.length)
   232                 cs.annotations.prepend(List.of(profileAnnos[p]));
   232                 cs.prependAttributes(List.of(profileAnnos[p]));
   233             writeClass(pool, cs, writer);
   233             writeClass(pool, cs, writer);
   234         }
   234         }
   235 
   235 
   236         if (false) {
   236         if (false) {
   237             for (String pckName : crisp)
   237             for (String pckName : crisp)