1.1 --- a/src/share/classes/javax/tools/StandardLocation.java Fri Mar 09 17:10:56 2012 +0000 1.2 +++ b/src/share/classes/javax/tools/StandardLocation.java Tue Mar 13 15:43:40 2012 -0700 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2006, 2008, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2006, 2012, 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 @@ -66,7 +66,13 @@ 1.11 * Location to search for platform classes. Sometimes called 1.12 * the boot class path. 1.13 */ 1.14 - PLATFORM_CLASS_PATH; 1.15 + PLATFORM_CLASS_PATH, 1.16 + 1.17 + /** 1.18 + * Location of new native header files. 1.19 + * @since 1.8 1.20 + */ 1.21 + NATIVE_HEADER_OUTPUT; 1.22 1.23 /** 1.24 * Gets a location object with the given name. The following 1.25 @@ -97,6 +103,13 @@ 1.26 public String getName() { return name(); } 1.27 1.28 public boolean isOutputLocation() { 1.29 - return this == CLASS_OUTPUT || this == SOURCE_OUTPUT; 1.30 + switch (this) { 1.31 + case CLASS_OUTPUT: 1.32 + case SOURCE_OUTPUT: 1.33 + case NATIVE_HEADER_OUTPUT: 1.34 + return true; 1.35 + default: 1.36 + return false; 1.37 + } 1.38 } 1.39 }