This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 192113 - Upgrade JNA
Summary: Upgrade JNA
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal with 2 votes (vote)
Assignee: Stanislav Aubrecht
URL: https://jna.dev.java.net/source/brows...
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-18 15:18 UTC by Jesse Glick
Modified: 2011-01-06 12:34 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
proposed patch (273.74 KB, patch)
2010-12-21 13:56 UTC, Stanislav Aubrecht
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2010-11-18 15:18:01 UTC
We are bundling JNA 3.0.9, which is rather old. Prevents Platform users from making use of newer features, since multiple versions of a native lib cannot coexist. Please upgrade to 3.2.7 or the newest available release after checking basic functionality of clients (especially window system effects, native FS listening, keyring).

BTW could probably make use of new APIs, such as Crypt32Util.

Also see bug #146218 which may be related.
Comment 1 Stanislav Aubrecht 2010-12-21 13:56:47 UTC
Created attachment 104352 [details]
proposed patch
Comment 2 Jaroslav Tulach 2010-12-21 16:47:54 UTC
The amount of deleted code is really high, much higher than I'd expect for an upgrade of a library. What is the reason?
Comment 3 Stanislav Aubrecht 2010-12-21 20:29:21 UTC
(In reply to comment #2)
> The amount of deleted code is really high, much higher than I'd expect for an
> upgrade of a library. What is the reason?

the deleted code is now in JNA's platform.jar which core.nativeaccess depends on
Comment 4 Jesse Glick 2011-01-04 14:10:14 UTC
Inconsistency in platform-3.2.7-license.txt:

Version: 3.2.7
Origin: https://jna.dev.java.net/source/browse/*checkout*/jna/tags/3.0.9/jnalib/dist/jna.jar?rev=HEAD
Source: https://jna.dev.java.net/source/browse/*checkout*/jna/tags/3.0.9/jnalib/dist/jna.jar?rev=HEAD

1. The Origin is obviously wrong.

2. Source should point to source code, not a JAR.
Comment 5 Jesse Glick 2011-01-04 14:12:31 UTC
BTW it seems this was already committed as 8b2e4ce8a14c so should this now be FIXED?
Comment 6 Quality Engineering 2011-01-06 08:38:22 UTC
Integrated into 'main-golden', will be available in build *201101060001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/8b2e4ce8a14c
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #192113 - upgrading JNA library to version 3.2.7
Comment 7 Stanislav Aubrecht 2011-01-06 12:34:12 UTC
(In reply to comment #4)
> Inconsistency in platform-3.2.7-license.txt:
> 
> Version: 3.2.7
> Origin:
> https://jna.dev.java.net/source/browse/*checkout*/jna/tags/3.0.9/jnalib/dist/jna.jar?rev=HEAD
> Source:
> https://jna.dev.java.net/source/browse/*checkout*/jna/tags/3.0.9/jnalib/dist/jna.jar?rev=HEAD
> 
> 1. The Origin is obviously wrong.
> 
> 2. Source should point to source code, not a JAR.

fixed in core-main #2571994a6a29