JDK-7143768 : [macosx] Unexpected NullPointerException and java.io.IOException during DnD
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 7u4
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: os_x
  • CPU: x86
  • Submitted: 2012-02-08
  • Updated: 2013-01-24
  • Resolved: 2012-03-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8
7u4 b13Fixed 8Fixed
Description
Unexpected NullPointerException and java.io.IOException during DnD on Metal L&F

Steps to reproduce:
1. Run attached test
2. Select any file in FileChooser
3. Drag selected file and drop it on JEditorPane on the bottom of JFrame

On Aqua L&F this test do nothing. There is no DnD at all.

Test and Exceptions attached.

Comments
http://cr.openjdk.java.net/~kizune/7143768/webrev.00/ http://hg.openjdk.java.net/jdk7u/jdk7u-dev/jdk/rev/da13897c1a29
24-01-2013

EVALUATION Methods convertFileListToBytes and isURIListFormat are not implemented in CDataTransferer which causes these exceptions to be thrown. Idea of the fix is to implement these two methods.
13-02-2012