7150368: javac should include basic ability to generate native headers

Reviewed-by: mcimadamore, darcy, ohrstrom
This commit is contained in:
Jonathan Gibbons 2012-03-13 15:43:40 -07:00
parent f6ee974ac7
commit 9f1ffb53dc
15 changed files with 1958 additions and 13 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2006, 2008, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2006, 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -66,7 +66,13 @@ public enum StandardLocation implements Location {
* Location to search for platform classes. Sometimes called
* the boot class path.
*/
PLATFORM_CLASS_PATH;
PLATFORM_CLASS_PATH,
/**
* Location of new native header files.
* @since 1.8
*/
NATIVE_HEADER_OUTPUT;
/**
* Gets a location object with the given name. The following
@ -97,6 +103,13 @@ public enum StandardLocation implements Location {
public String getName() { return name(); }
public boolean isOutputLocation() {
return this == CLASS_OUTPUT || this == SOURCE_OUTPUT;
switch (this) {
case CLASS_OUTPUT:
case SOURCE_OUTPUT:
case NATIVE_HEADER_OUTPUT:
return true;
default:
return false;
}
}
}