Author: borges
Date: 2011-09-26 06:34:14 -0400 (Mon, 26 Sep 2011)
New Revision: 11417
Modified:
branches/HORNETQ-720_Replication/hornetq-journal/src/main/java/org/hornetq/core/asyncio/impl/HornetQFileLock.java
Log:
Fix compilation error against Java7.
Modified:
branches/HORNETQ-720_Replication/hornetq-journal/src/main/java/org/hornetq/core/asyncio/impl/HornetQFileLock.java
===================================================================
---
branches/HORNETQ-720_Replication/hornetq-journal/src/main/java/org/hornetq/core/asyncio/impl/HornetQFileLock.java 2011-09-26
09:55:05 UTC (rev 11416)
+++
branches/HORNETQ-720_Replication/hornetq-journal/src/main/java/org/hornetq/core/asyncio/impl/HornetQFileLock.java 2011-09-26
10:34:14 UTC (rev 11417)
@@ -14,6 +14,7 @@
package org.hornetq.core.asyncio.impl;
import java.io.IOException;
+import java.nio.channels.FileChannel;
import java.nio.channels.FileLock;
/**
@@ -27,7 +28,7 @@
{
private final int handle;
-
+
/**
* @param channel
* @param position
@@ -36,7 +37,7 @@
*/
protected HornetQFileLock(final int handle)
{
- super(null, 0, 0, false);
+ super((FileChannel)null, 0, 0, false);
this.handle = handle;
}