You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tim Ellison (JIRA)" <ji...@apache.org> on 2007/04/24 17:08:15 UTC

[jira] Closed: (HARMONY-3743) [classlib][nio][compatibility] Harmony doesn't support to call FileLock#release by reflection.

     [ https://issues.apache.org/jira/browse/HARMONY-3743?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Ellison closed HARMONY-3743.
--------------------------------

    Resolution: Invalid
      Assignee: Tim Ellison

> [classlib][nio][compatibility] Harmony doesn't support to call FileLock#release by reflection. 
> -----------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3743
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3743
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Andrew Zhang
>         Assigned To: Tim Ellison
>
> 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.