--- a/jdk/src/java.base/share/classes/java/io/FileSystem.java Tue Dec 20 10:49:50 2016 +0100
+++ b/jdk/src/java.base/share/classes/java/io/FileSystem.java Tue Dec 20 11:46:09 2016 -0800
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 2016, 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
@@ -213,6 +213,13 @@
/* -- Basic infrastructure -- */
/**
+ * Retrieve the maximum length of a component of a file path.
+ *
+ * @return The maximum length of a file path component.
+ */
+ public abstract int getNameMax(String path);
+
+ /**
* Compare two abstract pathnames lexicographically.
*/
public abstract int compare(File f1, File f2);