langtools/src/share/classes/com/sun/tools/javac/sym/CreateSymbols.java
author jfranck
Fri, 31 Aug 2012 10:37:46 +0100
changeset 13689 4d519199a6aa
parent 5847 1908176fd6e3
child 14949 45f43822bbde
permissions -rw-r--r--
7151010: Add compiler support for repeating annotations Reviewed-by: jjg, mcimadamore
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     1
/*
13689
4d519199a6aa 7151010: Add compiler support for repeating annotations
jfranck
parents: 5847
diff changeset
     2
 * Copyright (c) 2006, 2012, Oracle and/or its affiliates. All rights reserved.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
06bc494ca11e Initial load
duke
parents:
diff changeset
     4
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
06bc494ca11e Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 1264
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 1264
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    10
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
06bc494ca11e Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
06bc494ca11e Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
06bc494ca11e Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
06bc494ca11e Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
06bc494ca11e Initial load
duke
parents:
diff changeset
    16
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
06bc494ca11e Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
06bc494ca11e Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
06bc494ca11e Initial load
duke
parents:
diff changeset
    20
 *
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 1264
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 1264
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 1264
diff changeset
    23
 * questions.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    24
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
    25
06bc494ca11e Initial load
duke
parents:
diff changeset
    26
package com.sun.tools.javac.sym;
06bc494ca11e Initial load
duke
parents:
diff changeset
    27
06bc494ca11e Initial load
duke
parents:
diff changeset
    28
import com.sun.tools.javac.api.JavacTaskImpl;
06bc494ca11e Initial load
duke
parents:
diff changeset
    29
import com.sun.tools.javac.code.Kinds;
06bc494ca11e Initial load
duke
parents:
diff changeset
    30
import com.sun.tools.javac.code.Scope;
06bc494ca11e Initial load
duke
parents:
diff changeset
    31
import com.sun.tools.javac.code.Symbol.*;
06bc494ca11e Initial load
duke
parents:
diff changeset
    32
import com.sun.tools.javac.code.Symbol;
06bc494ca11e Initial load
duke
parents:
diff changeset
    33
import com.sun.tools.javac.code.Attribute;
06bc494ca11e Initial load
duke
parents:
diff changeset
    34
import com.sun.tools.javac.code.Symtab;
06bc494ca11e Initial load
duke
parents:
diff changeset
    35
import com.sun.tools.javac.code.Type;
06bc494ca11e Initial load
duke
parents:
diff changeset
    36
import com.sun.tools.javac.jvm.ClassReader;
06bc494ca11e Initial load
duke
parents:
diff changeset
    37
import com.sun.tools.javac.jvm.ClassWriter;
06bc494ca11e Initial load
duke
parents:
diff changeset
    38
import com.sun.tools.javac.jvm.Pool;
06bc494ca11e Initial load
duke
parents:
diff changeset
    39
import com.sun.tools.javac.processing.JavacProcessingEnvironment;
06bc494ca11e Initial load
duke
parents:
diff changeset
    40
import com.sun.tools.javac.util.List;
06bc494ca11e Initial load
duke
parents:
diff changeset
    41
import com.sun.tools.javac.util.Pair;
06bc494ca11e Initial load
duke
parents:
diff changeset
    42
06bc494ca11e Initial load
duke
parents:
diff changeset
    43
import java.io.File;
06bc494ca11e Initial load
duke
parents:
diff changeset
    44
import java.io.IOException;
06bc494ca11e Initial load
duke
parents:
diff changeset
    45
import java.util.ArrayList;
06bc494ca11e Initial load
duke
parents:
diff changeset
    46
import java.util.EnumSet;
06bc494ca11e Initial load
duke
parents:
diff changeset
    47
import java.util.Enumeration;
06bc494ca11e Initial load
duke
parents:
diff changeset
    48
import java.util.HashSet;
06bc494ca11e Initial load
duke
parents:
diff changeset
    49
import java.util.ResourceBundle;
06bc494ca11e Initial load
duke
parents:
diff changeset
    50
import java.util.Set;
06bc494ca11e Initial load
duke
parents:
diff changeset
    51
06bc494ca11e Initial load
duke
parents:
diff changeset
    52
import javax.annotation.processing.AbstractProcessor;
06bc494ca11e Initial load
duke
parents:
diff changeset
    53
import javax.annotation.processing.RoundEnvironment;
06bc494ca11e Initial load
duke
parents:
diff changeset
    54
import javax.annotation.processing.SupportedAnnotationTypes;
06bc494ca11e Initial load
duke
parents:
diff changeset
    55
import javax.annotation.processing.SupportedOptions;
06bc494ca11e Initial load
duke
parents:
diff changeset
    56
import javax.lang.model.SourceVersion;
06bc494ca11e Initial load
duke
parents:
diff changeset
    57
import javax.lang.model.element.ElementKind;
06bc494ca11e Initial load
duke
parents:
diff changeset
    58
import javax.lang.model.element.TypeElement;
06bc494ca11e Initial load
duke
parents:
diff changeset
    59
import javax.tools.Diagnostic;
06bc494ca11e Initial load
duke
parents:
diff changeset
    60
import javax.tools.JavaCompiler;
06bc494ca11e Initial load
duke
parents:
diff changeset
    61
import javax.tools.JavaFileManager.Location;
06bc494ca11e Initial load
duke
parents:
diff changeset
    62
import javax.tools.JavaFileObject;
06bc494ca11e Initial load
duke
parents:
diff changeset
    63
import static javax.tools.JavaFileObject.Kind.CLASS;
06bc494ca11e Initial load
duke
parents:
diff changeset
    64
import javax.tools.StandardJavaFileManager;
06bc494ca11e Initial load
duke
parents:
diff changeset
    65
import javax.tools.StandardLocation;
06bc494ca11e Initial load
duke
parents:
diff changeset
    66
import javax.tools.ToolProvider;
06bc494ca11e Initial load
duke
parents:
diff changeset
    67
06bc494ca11e Initial load
duke
parents:
diff changeset
    68
/**
06bc494ca11e Initial load
duke
parents:
diff changeset
    69
 * Used to generate a "symbol file" representing rt.jar that only
06bc494ca11e Initial load
duke
parents:
diff changeset
    70
 * includes supported or legacy proprietary API.  Valid annotation
06bc494ca11e Initial load
duke
parents:
diff changeset
    71
 * processor options:
06bc494ca11e Initial load
duke
parents:
diff changeset
    72
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    73
 * <dl>
06bc494ca11e Initial load
duke
parents:
diff changeset
    74
 * <dt>com.sun.tools.javac.sym.Jar</dt>
06bc494ca11e Initial load
duke
parents:
diff changeset
    75
 * <dd>Specifies the location of rt.jar.</dd>
06bc494ca11e Initial load
duke
parents:
diff changeset
    76
 * <dt>com.sun.tools.javac.sym.Dest</dt>
06bc494ca11e Initial load
duke
parents:
diff changeset
    77
 * <dd>Specifies the destination directory.</dd>
06bc494ca11e Initial load
duke
parents:
diff changeset
    78
 * </dl>
06bc494ca11e Initial load
duke
parents:
diff changeset
    79
 *
5847
1908176fd6e3 6944312: Potential rebranding issues in openjdk/langtools repository sources
jjg
parents: 5520
diff changeset
    80
 * <p><b>This is NOT part of any supported API.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    81
 * If you write code that depends on this, you do so at your own
06bc494ca11e Initial load
duke
parents:
diff changeset
    82
 * risk.  This code and its internal interfaces are subject to change
06bc494ca11e Initial load
duke
parents:
diff changeset
    83
 * or deletion without notice.</b></p>
06bc494ca11e Initial load
duke
parents:
diff changeset
    84
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    85
 * @author Peter von der Ah\u00e9
06bc494ca11e Initial load
duke
parents:
diff changeset
    86
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
    87
@SupportedOptions({"com.sun.tools.javac.sym.Jar","com.sun.tools.javac.sym.Dest"})
06bc494ca11e Initial load
duke
parents:
diff changeset
    88
@SupportedAnnotationTypes("*")
06bc494ca11e Initial load
duke
parents:
diff changeset
    89
public class CreateSymbols extends AbstractProcessor {
06bc494ca11e Initial load
duke
parents:
diff changeset
    90
06bc494ca11e Initial load
duke
parents:
diff changeset
    91
    static Set<String> getLegacyPackages() {
06bc494ca11e Initial load
duke
parents:
diff changeset
    92
        ResourceBundle legacyBundle
06bc494ca11e Initial load
duke
parents:
diff changeset
    93
            = ResourceBundle.getBundle("com.sun.tools.javac.resources.legacy");
06bc494ca11e Initial load
duke
parents:
diff changeset
    94
        Set<String> keys = new HashSet<String>();
06bc494ca11e Initial load
duke
parents:
diff changeset
    95
        for (Enumeration<String> e = legacyBundle.getKeys(); e.hasMoreElements(); )
06bc494ca11e Initial load
duke
parents:
diff changeset
    96
            keys.add(e.nextElement());
06bc494ca11e Initial load
duke
parents:
diff changeset
    97
        return keys;
06bc494ca11e Initial load
duke
parents:
diff changeset
    98
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
    99
06bc494ca11e Initial load
duke
parents:
diff changeset
   100
    public boolean process(Set<? extends TypeElement> tes, RoundEnvironment renv) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   101
        try {
06bc494ca11e Initial load
duke
parents:
diff changeset
   102
            if (renv.processingOver())
06bc494ca11e Initial load
duke
parents:
diff changeset
   103
                createSymbols();
06bc494ca11e Initial load
duke
parents:
diff changeset
   104
        } catch (IOException e) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   105
            processingEnv.getMessager()
06bc494ca11e Initial load
duke
parents:
diff changeset
   106
                .printMessage(Diagnostic.Kind.ERROR, e.getLocalizedMessage());
06bc494ca11e Initial load
duke
parents:
diff changeset
   107
        } catch (Throwable t) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   108
            Throwable cause = t.getCause();
06bc494ca11e Initial load
duke
parents:
diff changeset
   109
            if (cause == null)
06bc494ca11e Initial load
duke
parents:
diff changeset
   110
                cause = t;
06bc494ca11e Initial load
duke
parents:
diff changeset
   111
            processingEnv.getMessager()
06bc494ca11e Initial load
duke
parents:
diff changeset
   112
                .printMessage(Diagnostic.Kind.ERROR, cause.getLocalizedMessage());
06bc494ca11e Initial load
duke
parents:
diff changeset
   113
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   114
        return true;
06bc494ca11e Initial load
duke
parents:
diff changeset
   115
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   116
06bc494ca11e Initial load
duke
parents:
diff changeset
   117
    void createSymbols() throws IOException {
06bc494ca11e Initial load
duke
parents:
diff changeset
   118
        Set<String> legacy = getLegacyPackages();
06bc494ca11e Initial load
duke
parents:
diff changeset
   119
        Set<String> legacyProprietary = getLegacyPackages();
06bc494ca11e Initial load
duke
parents:
diff changeset
   120
        Set<String> documented = new HashSet<String>();
06bc494ca11e Initial load
duke
parents:
diff changeset
   121
        Set<PackageSymbol> packages =
06bc494ca11e Initial load
duke
parents:
diff changeset
   122
            ((JavacProcessingEnvironment)processingEnv).getSpecifiedPackages();
06bc494ca11e Initial load
duke
parents:
diff changeset
   123
        String jarName = processingEnv.getOptions().get("com.sun.tools.javac.sym.Jar");
06bc494ca11e Initial load
duke
parents:
diff changeset
   124
        if (jarName == null)
06bc494ca11e Initial load
duke
parents:
diff changeset
   125
            throw new RuntimeException("Must use -Acom.sun.tools.javac.sym.Jar=LOCATION_OF_JAR");
06bc494ca11e Initial load
duke
parents:
diff changeset
   126
        String destName = processingEnv.getOptions().get("com.sun.tools.javac.sym.Dest");
06bc494ca11e Initial load
duke
parents:
diff changeset
   127
        if (destName == null)
06bc494ca11e Initial load
duke
parents:
diff changeset
   128
            throw new RuntimeException("Must use -Acom.sun.tools.javac.sym.Dest=LOCATION_OF_JAR");
06bc494ca11e Initial load
duke
parents:
diff changeset
   129
06bc494ca11e Initial load
duke
parents:
diff changeset
   130
        for (PackageSymbol psym : packages) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   131
            String name = psym.getQualifiedName().toString();
06bc494ca11e Initial load
duke
parents:
diff changeset
   132
            legacyProprietary.remove(name);
06bc494ca11e Initial load
duke
parents:
diff changeset
   133
            documented.add(name);
06bc494ca11e Initial load
duke
parents:
diff changeset
   134
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   135
06bc494ca11e Initial load
duke
parents:
diff changeset
   136
        JavaCompiler tool = ToolProvider.getSystemJavaCompiler();
06bc494ca11e Initial load
duke
parents:
diff changeset
   137
        StandardJavaFileManager fm = tool.getStandardFileManager(null, null, null);
06bc494ca11e Initial load
duke
parents:
diff changeset
   138
        Location jarLocation = StandardLocation.locationFor(jarName);
06bc494ca11e Initial load
duke
parents:
diff changeset
   139
        File jarFile = new File(jarName);
06bc494ca11e Initial load
duke
parents:
diff changeset
   140
        fm.setLocation(jarLocation, List.of(jarFile));
06bc494ca11e Initial load
duke
parents:
diff changeset
   141
        fm.setLocation(StandardLocation.CLASS_PATH, List.<File>nil());
06bc494ca11e Initial load
duke
parents:
diff changeset
   142
        fm.setLocation(StandardLocation.SOURCE_PATH, List.<File>nil());
06bc494ca11e Initial load
duke
parents:
diff changeset
   143
        {
06bc494ca11e Initial load
duke
parents:
diff changeset
   144
            ArrayList<File> bootClassPath = new ArrayList<File>();
06bc494ca11e Initial load
duke
parents:
diff changeset
   145
            bootClassPath.add(jarFile);
06bc494ca11e Initial load
duke
parents:
diff changeset
   146
            for (File path : fm.getLocation(StandardLocation.PLATFORM_CLASS_PATH)) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   147
                if (!new File(path.getName()).equals(new File("rt.jar")))
06bc494ca11e Initial load
duke
parents:
diff changeset
   148
                    bootClassPath.add(path);
06bc494ca11e Initial load
duke
parents:
diff changeset
   149
            }
06bc494ca11e Initial load
duke
parents:
diff changeset
   150
            System.err.println("Using boot class path = " + bootClassPath);
06bc494ca11e Initial load
duke
parents:
diff changeset
   151
            fm.setLocation(StandardLocation.PLATFORM_CLASS_PATH, bootClassPath);
06bc494ca11e Initial load
duke
parents:
diff changeset
   152
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   153
        // System.out.println(fm.getLocation(StandardLocation.PLATFORM_CLASS_PATH));
06bc494ca11e Initial load
duke
parents:
diff changeset
   154
        File destDir = new File(destName);
06bc494ca11e Initial load
duke
parents:
diff changeset
   155
        if (!destDir.exists())
06bc494ca11e Initial load
duke
parents:
diff changeset
   156
            if (!destDir.mkdirs())
06bc494ca11e Initial load
duke
parents:
diff changeset
   157
                throw new RuntimeException("Could not create " + destDir);
06bc494ca11e Initial load
duke
parents:
diff changeset
   158
        fm.setLocation(StandardLocation.CLASS_OUTPUT, List.of(destDir));
06bc494ca11e Initial load
duke
parents:
diff changeset
   159
        Set<String> hiddenPackages = new HashSet<String>();
06bc494ca11e Initial load
duke
parents:
diff changeset
   160
        Set<String> crisp = new HashSet<String>();
06bc494ca11e Initial load
duke
parents:
diff changeset
   161
        List<String> options = List.of("-XDdev");
06bc494ca11e Initial load
duke
parents:
diff changeset
   162
        // options = options.prepend("-doe");
06bc494ca11e Initial load
duke
parents:
diff changeset
   163
        // options = options.prepend("-verbose");
06bc494ca11e Initial load
duke
parents:
diff changeset
   164
        JavacTaskImpl task = (JavacTaskImpl)
06bc494ca11e Initial load
duke
parents:
diff changeset
   165
            tool.getTask(null, fm, null, options, null, null);
06bc494ca11e Initial load
duke
parents:
diff changeset
   166
        com.sun.tools.javac.main.JavaCompiler compiler =
06bc494ca11e Initial load
duke
parents:
diff changeset
   167
            com.sun.tools.javac.main.JavaCompiler.instance(task.getContext());
06bc494ca11e Initial load
duke
parents:
diff changeset
   168
        ClassReader reader = ClassReader.instance(task.getContext());
06bc494ca11e Initial load
duke
parents:
diff changeset
   169
        ClassWriter writer = ClassWriter.instance(task.getContext());
06bc494ca11e Initial load
duke
parents:
diff changeset
   170
        Symtab syms = Symtab.instance(task.getContext());
06bc494ca11e Initial load
duke
parents:
diff changeset
   171
        Attribute.Compound proprietary =
06bc494ca11e Initial load
duke
parents:
diff changeset
   172
            new Attribute.Compound(syms.proprietaryType,
06bc494ca11e Initial load
duke
parents:
diff changeset
   173
                                   List.<Pair<Symbol.MethodSymbol,Attribute>>nil());
06bc494ca11e Initial load
duke
parents:
diff changeset
   174
06bc494ca11e Initial load
duke
parents:
diff changeset
   175
        Type.moreInfo = true;
06bc494ca11e Initial load
duke
parents:
diff changeset
   176
        Pool pool = new Pool();
06bc494ca11e Initial load
duke
parents:
diff changeset
   177
        for (JavaFileObject file : fm.list(jarLocation, "", EnumSet.of(CLASS), true)) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   178
            String className = fm.inferBinaryName(jarLocation, file);
06bc494ca11e Initial load
duke
parents:
diff changeset
   179
            int index = className.lastIndexOf('.');
06bc494ca11e Initial load
duke
parents:
diff changeset
   180
            String pckName = index == -1 ? "" : className.substring(0, index);
06bc494ca11e Initial load
duke
parents:
diff changeset
   181
            boolean addLegacyAnnotation = false;
06bc494ca11e Initial load
duke
parents:
diff changeset
   182
            if (documented.contains(pckName)) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   183
                if (!legacy.contains(pckName))
06bc494ca11e Initial load
duke
parents:
diff changeset
   184
                    crisp.add(pckName);
06bc494ca11e Initial load
duke
parents:
diff changeset
   185
                // System.out.println("Documented: " + className);
06bc494ca11e Initial load
duke
parents:
diff changeset
   186
            } else if (legacyProprietary.contains(pckName)) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   187
                addLegacyAnnotation = true;
06bc494ca11e Initial load
duke
parents:
diff changeset
   188
                // System.out.println("Legacy proprietary: " + className);
06bc494ca11e Initial load
duke
parents:
diff changeset
   189
            } else {
06bc494ca11e Initial load
duke
parents:
diff changeset
   190
                // System.out.println("Hidden " + className);
06bc494ca11e Initial load
duke
parents:
diff changeset
   191
                hiddenPackages.add(pckName);
06bc494ca11e Initial load
duke
parents:
diff changeset
   192
                continue;
06bc494ca11e Initial load
duke
parents:
diff changeset
   193
            }
06bc494ca11e Initial load
duke
parents:
diff changeset
   194
            TypeSymbol sym = (TypeSymbol)compiler.resolveIdent(className);
06bc494ca11e Initial load
duke
parents:
diff changeset
   195
            if (sym.kind != Kinds.TYP) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   196
                if (className.indexOf('$') < 0) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   197
                    System.err.println("Ignoring (other) " + className + " : " + sym);
06bc494ca11e Initial load
duke
parents:
diff changeset
   198
                    System.err.println("   " + sym.getClass().getSimpleName() + " " + sym.type);
06bc494ca11e Initial load
duke
parents:
diff changeset
   199
                }
06bc494ca11e Initial load
duke
parents:
diff changeset
   200
                continue;
06bc494ca11e Initial load
duke
parents:
diff changeset
   201
            }
06bc494ca11e Initial load
duke
parents:
diff changeset
   202
            sym.complete();
06bc494ca11e Initial load
duke
parents:
diff changeset
   203
            if (sym.getEnclosingElement().getKind() != ElementKind.PACKAGE) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   204
                System.err.println("Ignoring (bad) " + sym.getQualifiedName());
06bc494ca11e Initial load
duke
parents:
diff changeset
   205
                continue;
06bc494ca11e Initial load
duke
parents:
diff changeset
   206
            }
06bc494ca11e Initial load
duke
parents:
diff changeset
   207
            ClassSymbol cs = (ClassSymbol) sym;
06bc494ca11e Initial load
duke
parents:
diff changeset
   208
            if (addLegacyAnnotation) {
13689
4d519199a6aa 7151010: Add compiler support for repeating annotations
jfranck
parents: 5847
diff changeset
   209
                cs.annotations.prepend(List.of(proprietary));
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   210
            }
06bc494ca11e Initial load
duke
parents:
diff changeset
   211
            writeClass(pool, cs, writer);
06bc494ca11e Initial load
duke
parents:
diff changeset
   212
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   213
06bc494ca11e Initial load
duke
parents:
diff changeset
   214
        if (false) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   215
            for (String pckName : crisp)
06bc494ca11e Initial load
duke
parents:
diff changeset
   216
                System.out.println("Crisp: " + pckName);
06bc494ca11e Initial load
duke
parents:
diff changeset
   217
            for (String pckName : hiddenPackages)
06bc494ca11e Initial load
duke
parents:
diff changeset
   218
                System.out.println("Hidden: " + pckName);
06bc494ca11e Initial load
duke
parents:
diff changeset
   219
            for (String pckName : legacyProprietary)
06bc494ca11e Initial load
duke
parents:
diff changeset
   220
                System.out.println("Legacy proprietary: " + pckName);
06bc494ca11e Initial load
duke
parents:
diff changeset
   221
            for (String pckName : documented)
06bc494ca11e Initial load
duke
parents:
diff changeset
   222
                System.out.println("Documented: " + pckName);
06bc494ca11e Initial load
duke
parents:
diff changeset
   223
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   224
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   225
06bc494ca11e Initial load
duke
parents:
diff changeset
   226
    void writeClass(final Pool pool, final ClassSymbol cs, final ClassWriter writer)
06bc494ca11e Initial load
duke
parents:
diff changeset
   227
        throws IOException
06bc494ca11e Initial load
duke
parents:
diff changeset
   228
    {
06bc494ca11e Initial load
duke
parents:
diff changeset
   229
        try {
06bc494ca11e Initial load
duke
parents:
diff changeset
   230
            pool.reset();
06bc494ca11e Initial load
duke
parents:
diff changeset
   231
            cs.pool = pool;
06bc494ca11e Initial load
duke
parents:
diff changeset
   232
            writer.writeClass(cs);
06bc494ca11e Initial load
duke
parents:
diff changeset
   233
            for (Scope.Entry e = cs.members().elems; e != null; e = e.sibling) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   234
                if (e.sym.kind == Kinds.TYP) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   235
                    ClassSymbol nestedClass = (ClassSymbol)e.sym;
06bc494ca11e Initial load
duke
parents:
diff changeset
   236
                    nestedClass.complete();
06bc494ca11e Initial load
duke
parents:
diff changeset
   237
                    writeClass(pool, nestedClass, writer);
06bc494ca11e Initial load
duke
parents:
diff changeset
   238
                }
06bc494ca11e Initial load
duke
parents:
diff changeset
   239
            }
06bc494ca11e Initial load
duke
parents:
diff changeset
   240
        } catch (ClassWriter.StringOverflow ex) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   241
            throw new RuntimeException(ex);
06bc494ca11e Initial load
duke
parents:
diff changeset
   242
        } catch (ClassWriter.PoolOverflow ex) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   243
            throw new RuntimeException(ex);
06bc494ca11e Initial load
duke
parents:
diff changeset
   244
        }
06bc494ca11e Initial load
duke
parents:
diff changeset
   245
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   246
06bc494ca11e Initial load
duke
parents:
diff changeset
   247
    public SourceVersion getSupportedSourceVersion() {
06bc494ca11e Initial load
duke
parents:
diff changeset
   248
        return SourceVersion.latest();
06bc494ca11e Initial load
duke
parents:
diff changeset
   249
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   250
06bc494ca11e Initial load
duke
parents:
diff changeset
   251
    // used for debugging
06bc494ca11e Initial load
duke
parents:
diff changeset
   252
    public static void main(String... args) {
06bc494ca11e Initial load
duke
parents:
diff changeset
   253
        String rt_jar = args[0];
06bc494ca11e Initial load
duke
parents:
diff changeset
   254
        String dest = args[1];
06bc494ca11e Initial load
duke
parents:
diff changeset
   255
        args = new String[] {
06bc494ca11e Initial load
duke
parents:
diff changeset
   256
            "-Xbootclasspath:" + rt_jar,
06bc494ca11e Initial load
duke
parents:
diff changeset
   257
            "-XDprocess.packages",
06bc494ca11e Initial load
duke
parents:
diff changeset
   258
            "-proc:only",
06bc494ca11e Initial load
duke
parents:
diff changeset
   259
            "-processor",
06bc494ca11e Initial load
duke
parents:
diff changeset
   260
            "com.sun.tools.javac.sym.CreateSymbols",
06bc494ca11e Initial load
duke
parents:
diff changeset
   261
            "-Acom.sun.tools.javac.sym.Jar=" + rt_jar,
06bc494ca11e Initial load
duke
parents:
diff changeset
   262
            "-Acom.sun.tools.javac.sym.Dest=" + dest,
06bc494ca11e Initial load
duke
parents:
diff changeset
   263
            // <editor-fold defaultstate="collapsed">
06bc494ca11e Initial load
duke
parents:
diff changeset
   264
            "java.applet",
06bc494ca11e Initial load
duke
parents:
diff changeset
   265
            "java.awt",
06bc494ca11e Initial load
duke
parents:
diff changeset
   266
            "java.awt.color",
06bc494ca11e Initial load
duke
parents:
diff changeset
   267
            "java.awt.datatransfer",
06bc494ca11e Initial load
duke
parents:
diff changeset
   268
            "java.awt.dnd",
06bc494ca11e Initial load
duke
parents:
diff changeset
   269
            "java.awt.event",
06bc494ca11e Initial load
duke
parents:
diff changeset
   270
            "java.awt.font",
06bc494ca11e Initial load
duke
parents:
diff changeset
   271
            "java.awt.geom",
06bc494ca11e Initial load
duke
parents:
diff changeset
   272
            "java.awt.im",
06bc494ca11e Initial load
duke
parents:
diff changeset
   273
            "java.awt.im.spi",
06bc494ca11e Initial load
duke
parents:
diff changeset
   274
            "java.awt.image",
06bc494ca11e Initial load
duke
parents:
diff changeset
   275
            "java.awt.image.renderable",
06bc494ca11e Initial load
duke
parents:
diff changeset
   276
            "java.awt.print",
06bc494ca11e Initial load
duke
parents:
diff changeset
   277
            "java.beans",
06bc494ca11e Initial load
duke
parents:
diff changeset
   278
            "java.beans.beancontext",
06bc494ca11e Initial load
duke
parents:
diff changeset
   279
            "java.io",
06bc494ca11e Initial load
duke
parents:
diff changeset
   280
            "java.lang",
06bc494ca11e Initial load
duke
parents:
diff changeset
   281
            "java.lang.annotation",
06bc494ca11e Initial load
duke
parents:
diff changeset
   282
            "java.lang.instrument",
06bc494ca11e Initial load
duke
parents:
diff changeset
   283
            "java.lang.management",
06bc494ca11e Initial load
duke
parents:
diff changeset
   284
            "java.lang.ref",
06bc494ca11e Initial load
duke
parents:
diff changeset
   285
            "java.lang.reflect",
06bc494ca11e Initial load
duke
parents:
diff changeset
   286
            "java.math",
06bc494ca11e Initial load
duke
parents:
diff changeset
   287
            "java.net",
06bc494ca11e Initial load
duke
parents:
diff changeset
   288
            "java.nio",
06bc494ca11e Initial load
duke
parents:
diff changeset
   289
            "java.nio.channels",
06bc494ca11e Initial load
duke
parents:
diff changeset
   290
            "java.nio.channels.spi",
06bc494ca11e Initial load
duke
parents:
diff changeset
   291
            "java.nio.charset",
06bc494ca11e Initial load
duke
parents:
diff changeset
   292
            "java.nio.charset.spi",
06bc494ca11e Initial load
duke
parents:
diff changeset
   293
            "java.rmi",
06bc494ca11e Initial load
duke
parents:
diff changeset
   294
            "java.rmi.activation",
06bc494ca11e Initial load
duke
parents:
diff changeset
   295
            "java.rmi.dgc",
06bc494ca11e Initial load
duke
parents:
diff changeset
   296
            "java.rmi.registry",
06bc494ca11e Initial load
duke
parents:
diff changeset
   297
            "java.rmi.server",
06bc494ca11e Initial load
duke
parents:
diff changeset
   298
            "java.security",
06bc494ca11e Initial load
duke
parents:
diff changeset
   299
            "java.security.acl",
06bc494ca11e Initial load
duke
parents:
diff changeset
   300
            "java.security.cert",
06bc494ca11e Initial load
duke
parents:
diff changeset
   301
            "java.security.interfaces",
06bc494ca11e Initial load
duke
parents:
diff changeset
   302
            "java.security.spec",
06bc494ca11e Initial load
duke
parents:
diff changeset
   303
            "java.sql",
06bc494ca11e Initial load
duke
parents:
diff changeset
   304
            "java.text",
06bc494ca11e Initial load
duke
parents:
diff changeset
   305
            "java.text.spi",
06bc494ca11e Initial load
duke
parents:
diff changeset
   306
            "java.util",
06bc494ca11e Initial load
duke
parents:
diff changeset
   307
            "java.util.concurrent",
06bc494ca11e Initial load
duke
parents:
diff changeset
   308
            "java.util.concurrent.atomic",
06bc494ca11e Initial load
duke
parents:
diff changeset
   309
            "java.util.concurrent.locks",
06bc494ca11e Initial load
duke
parents:
diff changeset
   310
            "java.util.jar",
06bc494ca11e Initial load
duke
parents:
diff changeset
   311
            "java.util.logging",
06bc494ca11e Initial load
duke
parents:
diff changeset
   312
            "java.util.prefs",
06bc494ca11e Initial load
duke
parents:
diff changeset
   313
            "java.util.regex",
06bc494ca11e Initial load
duke
parents:
diff changeset
   314
            "java.util.spi",
06bc494ca11e Initial load
duke
parents:
diff changeset
   315
            "java.util.zip",
06bc494ca11e Initial load
duke
parents:
diff changeset
   316
            "javax.accessibility",
06bc494ca11e Initial load
duke
parents:
diff changeset
   317
            "javax.activation",
06bc494ca11e Initial load
duke
parents:
diff changeset
   318
            "javax.activity",
06bc494ca11e Initial load
duke
parents:
diff changeset
   319
            "javax.annotation",
06bc494ca11e Initial load
duke
parents:
diff changeset
   320
            "javax.annotation.processing",
06bc494ca11e Initial load
duke
parents:
diff changeset
   321
            "javax.crypto",
06bc494ca11e Initial load
duke
parents:
diff changeset
   322
            "javax.crypto.interfaces",
06bc494ca11e Initial load
duke
parents:
diff changeset
   323
            "javax.crypto.spec",
06bc494ca11e Initial load
duke
parents:
diff changeset
   324
            "javax.imageio",
06bc494ca11e Initial load
duke
parents:
diff changeset
   325
            "javax.imageio.event",
06bc494ca11e Initial load
duke
parents:
diff changeset
   326
            "javax.imageio.metadata",
06bc494ca11e Initial load
duke
parents:
diff changeset
   327
            "javax.imageio.plugins.jpeg",
06bc494ca11e Initial load
duke
parents:
diff changeset
   328
            "javax.imageio.plugins.bmp",
06bc494ca11e Initial load
duke
parents:
diff changeset
   329
            "javax.imageio.spi",
06bc494ca11e Initial load
duke
parents:
diff changeset
   330
            "javax.imageio.stream",
06bc494ca11e Initial load
duke
parents:
diff changeset
   331
            "javax.jws",
06bc494ca11e Initial load
duke
parents:
diff changeset
   332
            "javax.jws.soap",
06bc494ca11e Initial load
duke
parents:
diff changeset
   333
            "javax.lang.model",
06bc494ca11e Initial load
duke
parents:
diff changeset
   334
            "javax.lang.model.element",
06bc494ca11e Initial load
duke
parents:
diff changeset
   335
            "javax.lang.model.type",
06bc494ca11e Initial load
duke
parents:
diff changeset
   336
            "javax.lang.model.util",
06bc494ca11e Initial load
duke
parents:
diff changeset
   337
            "javax.management",
06bc494ca11e Initial load
duke
parents:
diff changeset
   338
            "javax.management.loading",
06bc494ca11e Initial load
duke
parents:
diff changeset
   339
            "javax.management.monitor",
06bc494ca11e Initial load
duke
parents:
diff changeset
   340
            "javax.management.relation",
06bc494ca11e Initial load
duke
parents:
diff changeset
   341
            "javax.management.openmbean",
06bc494ca11e Initial load
duke
parents:
diff changeset
   342
            "javax.management.timer",
06bc494ca11e Initial load
duke
parents:
diff changeset
   343
            "javax.management.modelmbean",
06bc494ca11e Initial load
duke
parents:
diff changeset
   344
            "javax.management.remote",
06bc494ca11e Initial load
duke
parents:
diff changeset
   345
            "javax.management.remote.rmi",
06bc494ca11e Initial load
duke
parents:
diff changeset
   346
            "javax.naming",
06bc494ca11e Initial load
duke
parents:
diff changeset
   347
            "javax.naming.directory",
06bc494ca11e Initial load
duke
parents:
diff changeset
   348
            "javax.naming.event",
06bc494ca11e Initial load
duke
parents:
diff changeset
   349
            "javax.naming.ldap",
06bc494ca11e Initial load
duke
parents:
diff changeset
   350
            "javax.naming.spi",
06bc494ca11e Initial load
duke
parents:
diff changeset
   351
            "javax.net",
06bc494ca11e Initial load
duke
parents:
diff changeset
   352
            "javax.net.ssl",
06bc494ca11e Initial load
duke
parents:
diff changeset
   353
            "javax.print",
06bc494ca11e Initial load
duke
parents:
diff changeset
   354
            "javax.print.attribute",
06bc494ca11e Initial load
duke
parents:
diff changeset
   355
            "javax.print.attribute.standard",
06bc494ca11e Initial load
duke
parents:
diff changeset
   356
            "javax.print.event",
06bc494ca11e Initial load
duke
parents:
diff changeset
   357
            "javax.rmi",
06bc494ca11e Initial load
duke
parents:
diff changeset
   358
            "javax.rmi.CORBA",
06bc494ca11e Initial load
duke
parents:
diff changeset
   359
            "javax.rmi.ssl",
06bc494ca11e Initial load
duke
parents:
diff changeset
   360
            "javax.script",
06bc494ca11e Initial load
duke
parents:
diff changeset
   361
            "javax.security.auth",
06bc494ca11e Initial load
duke
parents:
diff changeset
   362
            "javax.security.auth.callback",
06bc494ca11e Initial load
duke
parents:
diff changeset
   363
            "javax.security.auth.kerberos",
06bc494ca11e Initial load
duke
parents:
diff changeset
   364
            "javax.security.auth.login",
06bc494ca11e Initial load
duke
parents:
diff changeset
   365
            "javax.security.auth.spi",
06bc494ca11e Initial load
duke
parents:
diff changeset
   366
            "javax.security.auth.x500",
06bc494ca11e Initial load
duke
parents:
diff changeset
   367
            "javax.security.cert",
06bc494ca11e Initial load
duke
parents:
diff changeset
   368
            "javax.security.sasl",
06bc494ca11e Initial load
duke
parents:
diff changeset
   369
            "javax.sound.sampled",
06bc494ca11e Initial load
duke
parents:
diff changeset
   370
            "javax.sound.sampled.spi",
06bc494ca11e Initial load
duke
parents:
diff changeset
   371
            "javax.sound.midi",
06bc494ca11e Initial load
duke
parents:
diff changeset
   372
            "javax.sound.midi.spi",
06bc494ca11e Initial load
duke
parents:
diff changeset
   373
            "javax.sql",
06bc494ca11e Initial load
duke
parents:
diff changeset
   374
            "javax.sql.rowset",
06bc494ca11e Initial load
duke
parents:
diff changeset
   375
            "javax.sql.rowset.serial",
06bc494ca11e Initial load
duke
parents:
diff changeset
   376
            "javax.sql.rowset.spi",
06bc494ca11e Initial load
duke
parents:
diff changeset
   377
            "javax.swing",
06bc494ca11e Initial load
duke
parents:
diff changeset
   378
            "javax.swing.border",
06bc494ca11e Initial load
duke
parents:
diff changeset
   379
            "javax.swing.colorchooser",
06bc494ca11e Initial load
duke
parents:
diff changeset
   380
            "javax.swing.filechooser",
06bc494ca11e Initial load
duke
parents:
diff changeset
   381
            "javax.swing.event",
06bc494ca11e Initial load
duke
parents:
diff changeset
   382
            "javax.swing.table",
06bc494ca11e Initial load
duke
parents:
diff changeset
   383
            "javax.swing.text",
06bc494ca11e Initial load
duke
parents:
diff changeset
   384
            "javax.swing.text.html",
06bc494ca11e Initial load
duke
parents:
diff changeset
   385
            "javax.swing.text.html.parser",
06bc494ca11e Initial load
duke
parents:
diff changeset
   386
            "javax.swing.text.rtf",
06bc494ca11e Initial load
duke
parents:
diff changeset
   387
            "javax.swing.tree",
06bc494ca11e Initial load
duke
parents:
diff changeset
   388
            "javax.swing.undo",
06bc494ca11e Initial load
duke
parents:
diff changeset
   389
            "javax.swing.plaf",
06bc494ca11e Initial load
duke
parents:
diff changeset
   390
            "javax.swing.plaf.basic",
06bc494ca11e Initial load
duke
parents:
diff changeset
   391
            "javax.swing.plaf.metal",
06bc494ca11e Initial load
duke
parents:
diff changeset
   392
            "javax.swing.plaf.multi",
06bc494ca11e Initial load
duke
parents:
diff changeset
   393
            "javax.swing.plaf.synth",
06bc494ca11e Initial load
duke
parents:
diff changeset
   394
            "javax.tools",
06bc494ca11e Initial load
duke
parents:
diff changeset
   395
            "javax.transaction",
06bc494ca11e Initial load
duke
parents:
diff changeset
   396
            "javax.transaction.xa",
06bc494ca11e Initial load
duke
parents:
diff changeset
   397
            "javax.xml.parsers",
06bc494ca11e Initial load
duke
parents:
diff changeset
   398
            "javax.xml.bind",
06bc494ca11e Initial load
duke
parents:
diff changeset
   399
            "javax.xml.bind.annotation",
06bc494ca11e Initial load
duke
parents:
diff changeset
   400
            "javax.xml.bind.annotation.adapters",
06bc494ca11e Initial load
duke
parents:
diff changeset
   401
            "javax.xml.bind.attachment",
06bc494ca11e Initial load
duke
parents:
diff changeset
   402
            "javax.xml.bind.helpers",
06bc494ca11e Initial load
duke
parents:
diff changeset
   403
            "javax.xml.bind.util",
06bc494ca11e Initial load
duke
parents:
diff changeset
   404
            "javax.xml.soap",
06bc494ca11e Initial load
duke
parents:
diff changeset
   405
            "javax.xml.ws",
06bc494ca11e Initial load
duke
parents:
diff changeset
   406
            "javax.xml.ws.handler",
06bc494ca11e Initial load
duke
parents:
diff changeset
   407
            "javax.xml.ws.handler.soap",
06bc494ca11e Initial load
duke
parents:
diff changeset
   408
            "javax.xml.ws.http",
06bc494ca11e Initial load
duke
parents:
diff changeset
   409
            "javax.xml.ws.soap",
06bc494ca11e Initial load
duke
parents:
diff changeset
   410
            "javax.xml.ws.spi",
06bc494ca11e Initial load
duke
parents:
diff changeset
   411
            "javax.xml.transform",
06bc494ca11e Initial load
duke
parents:
diff changeset
   412
            "javax.xml.transform.sax",
06bc494ca11e Initial load
duke
parents:
diff changeset
   413
            "javax.xml.transform.dom",
06bc494ca11e Initial load
duke
parents:
diff changeset
   414
            "javax.xml.transform.stax",
06bc494ca11e Initial load
duke
parents:
diff changeset
   415
            "javax.xml.transform.stream",
06bc494ca11e Initial load
duke
parents:
diff changeset
   416
            "javax.xml",
06bc494ca11e Initial load
duke
parents:
diff changeset
   417
            "javax.xml.crypto",
06bc494ca11e Initial load
duke
parents:
diff changeset
   418
            "javax.xml.crypto.dom",
06bc494ca11e Initial load
duke
parents:
diff changeset
   419
            "javax.xml.crypto.dsig",
06bc494ca11e Initial load
duke
parents:
diff changeset
   420
            "javax.xml.crypto.dsig.dom",
06bc494ca11e Initial load
duke
parents:
diff changeset
   421
            "javax.xml.crypto.dsig.keyinfo",
06bc494ca11e Initial load
duke
parents:
diff changeset
   422
            "javax.xml.crypto.dsig.spec",
06bc494ca11e Initial load
duke
parents:
diff changeset
   423
            "javax.xml.datatype",
06bc494ca11e Initial load
duke
parents:
diff changeset
   424
            "javax.xml.validation",
06bc494ca11e Initial load
duke
parents:
diff changeset
   425
            "javax.xml.namespace",
06bc494ca11e Initial load
duke
parents:
diff changeset
   426
            "javax.xml.xpath",
06bc494ca11e Initial load
duke
parents:
diff changeset
   427
            "javax.xml.stream",
06bc494ca11e Initial load
duke
parents:
diff changeset
   428
            "javax.xml.stream.events",
06bc494ca11e Initial load
duke
parents:
diff changeset
   429
            "javax.xml.stream.util",
06bc494ca11e Initial load
duke
parents:
diff changeset
   430
            "org.ietf.jgss",
06bc494ca11e Initial load
duke
parents:
diff changeset
   431
            "org.omg.CORBA",
06bc494ca11e Initial load
duke
parents:
diff changeset
   432
            "org.omg.CORBA.DynAnyPackage",
06bc494ca11e Initial load
duke
parents:
diff changeset
   433
            "org.omg.CORBA.ORBPackage",
06bc494ca11e Initial load
duke
parents:
diff changeset
   434
            "org.omg.CORBA.TypeCodePackage",
06bc494ca11e Initial load
duke
parents:
diff changeset
   435
            "org.omg.stub.java.rmi",
06bc494ca11e Initial load
duke
parents:
diff changeset
   436
            "org.omg.CORBA.portable",
06bc494ca11e Initial load
duke
parents:
diff changeset
   437
            "org.omg.CORBA_2_3",
06bc494ca11e Initial load
duke
parents:
diff changeset
   438
            "org.omg.CORBA_2_3.portable",
06bc494ca11e Initial load
duke
parents:
diff changeset
   439
            "org.omg.CosNaming",
06bc494ca11e Initial load
duke
parents:
diff changeset
   440
            "org.omg.CosNaming.NamingContextExtPackage",
06bc494ca11e Initial load
duke
parents:
diff changeset
   441
            "org.omg.CosNaming.NamingContextPackage",
06bc494ca11e Initial load
duke
parents:
diff changeset
   442
            "org.omg.SendingContext",
06bc494ca11e Initial load
duke
parents:
diff changeset
   443
            "org.omg.PortableServer",
06bc494ca11e Initial load
duke
parents:
diff changeset
   444
            "org.omg.PortableServer.CurrentPackage",
06bc494ca11e Initial load
duke
parents:
diff changeset
   445
            "org.omg.PortableServer.POAPackage",
06bc494ca11e Initial load
duke
parents:
diff changeset
   446
            "org.omg.PortableServer.POAManagerPackage",
06bc494ca11e Initial load
duke
parents:
diff changeset
   447
            "org.omg.PortableServer.ServantLocatorPackage",
06bc494ca11e Initial load
duke
parents:
diff changeset
   448
            "org.omg.PortableServer.portable",
06bc494ca11e Initial load
duke
parents:
diff changeset
   449
            "org.omg.PortableInterceptor",
06bc494ca11e Initial load
duke
parents:
diff changeset
   450
            "org.omg.PortableInterceptor.ORBInitInfoPackage",
06bc494ca11e Initial load
duke
parents:
diff changeset
   451
            "org.omg.Messaging",
06bc494ca11e Initial load
duke
parents:
diff changeset
   452
            "org.omg.IOP",
06bc494ca11e Initial load
duke
parents:
diff changeset
   453
            "org.omg.IOP.CodecFactoryPackage",
06bc494ca11e Initial load
duke
parents:
diff changeset
   454
            "org.omg.IOP.CodecPackage",
06bc494ca11e Initial load
duke
parents:
diff changeset
   455
            "org.omg.Dynamic",
06bc494ca11e Initial load
duke
parents:
diff changeset
   456
            "org.omg.DynamicAny",
06bc494ca11e Initial load
duke
parents:
diff changeset
   457
            "org.omg.DynamicAny.DynAnyPackage",
06bc494ca11e Initial load
duke
parents:
diff changeset
   458
            "org.omg.DynamicAny.DynAnyFactoryPackage",
06bc494ca11e Initial load
duke
parents:
diff changeset
   459
            "org.w3c.dom",
06bc494ca11e Initial load
duke
parents:
diff changeset
   460
            "org.w3c.dom.events",
06bc494ca11e Initial load
duke
parents:
diff changeset
   461
            "org.w3c.dom.bootstrap",
06bc494ca11e Initial load
duke
parents:
diff changeset
   462
            "org.w3c.dom.ls",
06bc494ca11e Initial load
duke
parents:
diff changeset
   463
            "org.xml.sax",
06bc494ca11e Initial load
duke
parents:
diff changeset
   464
            "org.xml.sax.ext",
06bc494ca11e Initial load
duke
parents:
diff changeset
   465
            "org.xml.sax.helpers",
06bc494ca11e Initial load
duke
parents:
diff changeset
   466
            "com.sun.java.browser.dom",
06bc494ca11e Initial load
duke
parents:
diff changeset
   467
            "org.w3c.dom",
06bc494ca11e Initial load
duke
parents:
diff changeset
   468
            "org.w3c.dom.bootstrap",
06bc494ca11e Initial load
duke
parents:
diff changeset
   469
            "org.w3c.dom.ls",
06bc494ca11e Initial load
duke
parents:
diff changeset
   470
            "org.w3c.dom.ranges",
06bc494ca11e Initial load
duke
parents:
diff changeset
   471
            "org.w3c.dom.traversal",
06bc494ca11e Initial load
duke
parents:
diff changeset
   472
            "org.w3c.dom.html",
06bc494ca11e Initial load
duke
parents:
diff changeset
   473
            "org.w3c.dom.stylesheets",
06bc494ca11e Initial load
duke
parents:
diff changeset
   474
            "org.w3c.dom.css",
06bc494ca11e Initial load
duke
parents:
diff changeset
   475
            "org.w3c.dom.events",
06bc494ca11e Initial load
duke
parents:
diff changeset
   476
            "org.w3c.dom.views",
06bc494ca11e Initial load
duke
parents:
diff changeset
   477
            "com.sun.management",
06bc494ca11e Initial load
duke
parents:
diff changeset
   478
            "com.sun.security.auth",
06bc494ca11e Initial load
duke
parents:
diff changeset
   479
            "com.sun.security.auth.callback",
06bc494ca11e Initial load
duke
parents:
diff changeset
   480
            "com.sun.security.auth.login",
06bc494ca11e Initial load
duke
parents:
diff changeset
   481
            "com.sun.security.auth.module",
06bc494ca11e Initial load
duke
parents:
diff changeset
   482
            "com.sun.security.jgss",
06bc494ca11e Initial load
duke
parents:
diff changeset
   483
            "com.sun.net.httpserver",
06bc494ca11e Initial load
duke
parents:
diff changeset
   484
            "com.sun.net.httpserver.spi",
06bc494ca11e Initial load
duke
parents:
diff changeset
   485
            "javax.smartcardio"
06bc494ca11e Initial load
duke
parents:
diff changeset
   486
            // </editor-fold>
06bc494ca11e Initial load
duke
parents:
diff changeset
   487
        };
06bc494ca11e Initial load
duke
parents:
diff changeset
   488
        com.sun.tools.javac.Main.compile(args);
06bc494ca11e Initial load
duke
parents:
diff changeset
   489
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
   490
06bc494ca11e Initial load
duke
parents:
diff changeset
   491
}