test/tools/javac/6508981/TestInferBinaryName.java

changeset 882
3d45cc94ee0f
parent 554
9d9f26857129
child 923
6970d9fb8e02
     1.1 --- a/test/tools/javac/6508981/TestInferBinaryName.java	Fri Feb 18 12:28:49 2011 +0000
     1.2 +++ b/test/tools/javac/6508981/TestInferBinaryName.java	Fri Feb 18 08:12:06 2011 -0800
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2008, 2011 Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -138,12 +138,11 @@
    1.11                                     boolean zipFileIndexKind)
    1.12              throws IOException {
    1.13          Context ctx = new Context();
    1.14 +        Options options = Options.instance(ctx);
    1.15          // uugh, ugly back door, should be cleaned up, someday
    1.16          if (zipFileIndexKind == USE_ZIP_FILE_INDEX)
    1.17 -            System.clearProperty("useJavaUtilZip");
    1.18 -        else
    1.19 -            System.setProperty("useJavaUtilZip", "true");
    1.20 -        Options options = Options.instance(ctx);
    1.21 +            options.put("useOptimizedZip", "true");
    1.22 +
    1.23          if (symFileKind == IGNORE_SYMBOL_FILE)
    1.24              options.put("ignore.symbol.file", "true");
    1.25          JavacFileManager fm = new JavacFileManager(ctx, false, null);

mercurial