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