harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Zhang (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-3743) [classlib][nio] Harmony doesn't support to call FileLock#release by reflection way.
Date Tue, 24 Apr 2007 12:16:15 GMT
[classlib][nio] Harmony doesn't support to call FileLock#release by reflection way. 
------------------------------------------------------------------------------------

                 Key: HARMONY-3743
                 URL: https://issues.apache.org/jira/browse/HARMONY-3743
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Andrew Zhang


Following test case reproduces the problem: 

public void testRelease() throws Exception {
		File f = File.createTempFile("nio", "tmp");
		RandomAccessFile raf = new RandomAccessFile(f, "rw");
		FileChannel fc = raf.getChannel();
		FileLock lock = fc.lock();
		Method releaseMethod = lock.getClass().getMethod("release",
				(Class[]) null);
		releaseMethod.invoke(lock, (Object[]) null);
	}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message