harmony-commits mailing list archives

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

     [ 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.


Mime
View raw message