langtools/src/share/classes/com/sun/tools/javac/Main.java
changeset 8032 e1aa25ccdabb
parent 5520 86e4b9a9da40
child 10638 c8e9604cf151
equal deleted inserted replaced
8031:d5fe2c1cecfc 8032:e1aa25ccdabb
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2006, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    40  * API.  If you write code that depends on this, you do so at your own
    40  * API.  If you write code that depends on this, you do so at your own
    41  * risk.  This code and its internal interfaces are subject to change
    41  * risk.  This code and its internal interfaces are subject to change
    42  * or deletion without notice.
    42  * or deletion without notice.
    43  */
    43  */
    44 public class Main {
    44 public class Main {
    45 
       
    46     static {
       
    47         ClassLoader loader = Main.class.getClassLoader();
       
    48         if (loader != null)
       
    49             loader.setPackageAssertionStatus("com.sun.tools.javac", true);
       
    50     }
       
    51 
    45 
    52     /** Unsupported command line interface.
    46     /** Unsupported command line interface.
    53      * @param args   The command line parameters.
    47      * @param args   The command line parameters.
    54      */
    48      */
    55     public static void main(String[] args) throws Exception {
    49     public static void main(String[] args) throws Exception {