Import GNU Classpath (20121202).
2012-12-19 Matthias Klose <doko@ubuntu.com> Import GNU Classpath (20121202). * Regenerate class and header files. * Regenerate auto* files. * sources.am, gcj/javaprims.h: Regenerate. * gnu/java/nio/FileLockImpl.java (close): New override. From-SVN: r194618
This commit is contained in:
@@ -34,6 +34,7 @@ public: // actually protected
|
||||
void finalize();
|
||||
public:
|
||||
jboolean isValid();
|
||||
void close();
|
||||
void release();
|
||||
private:
|
||||
jboolean __attribute__((aligned(__alignof__( ::java::nio::channels::FileLock)))) valid;
|
||||
|
||||
@@ -90,6 +90,11 @@ public final class FileLockImpl extends FileLock
|
||||
return valid;
|
||||
}
|
||||
|
||||
public void close() throws Exception
|
||||
{
|
||||
release();
|
||||
}
|
||||
|
||||
/**
|
||||
* Releases the lock if it is still valid. Marks this lock as invalid.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user