File 0001-Fix-with-newer-jna.patch of Package intellij-idea

From b3c7c708a9d9f54943e2907ed1f0c27f452f9bcd Mon Sep 17 00:00:00 2001
From: Lubomir Rintel <lkundrak@v3.sk>
Date: Fri, 30 Oct 2009 15:14:19 +0100
Subject: [PATCH] Fix with newer jna

Win32Kernel.java:59: cannot find symbol
symbol  : constructor HANDLE(com.sun.jna.Pointer)
location: class com.sun.jna.examples.win32.W32API.HANDLE
---
 .../openapi/vfs/impl/win32/Win32Kernel.java        |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/platform/platform-impl/src/com/intellij/openapi/vfs/impl/win32/Win32Kernel.java b/platform/platform-impl/src/com/intellij/openapi/vfs/impl/win32/Win32Kernel.java
index 7c6b330..95b7c68 100644
--- a/platform/platform-impl/src/com/intellij/openapi/vfs/impl/win32/Win32Kernel.java
+++ b/platform/platform-impl/src/com/intellij/openapi/vfs/impl/win32/Win32Kernel.java
@@ -56,7 +56,9 @@ public class Win32Kernel {
     long ftLastWriteTime;
   }
 
-  private static W32API.HANDLE INVALID_HANDLE_VALUE = new W32API.HANDLE(Pointer.createConstant(0xFFFFFFFFl));
+  // jna 3.0.9 defines this
+  //private static W32API.HANDLE INVALID_HANDLE_VALUE = new W32API.HANDLE(Pointer.createConstant(0xFFFFFFFFl));
+  private static W32API.HANDLE INVALID_HANDLE_VALUE = W32API.INVALID_HANDLE_VALUE;
 
   private Map<String, FileInfo> myCache = new HashMap<String, FileInfo>();
 
-- 
1.6.5.1

openSUSE Build Service is sponsored by