<AWT Dev>  Review request for 8081787: [macosx] MalformedURLException is thrown during reading data for application/x-java-url; class=java.net.URL flavor
mikhail.cherkasov at oracle.com
Mon Jul 6 10:53:36 UTC 2015
UnsupportedFlavorException is thrown because clipboard has something
that can't be translated to application/x-java-url.
You should copy link from Safari or copy file from finder, only then you
will see MalformedURLException.
So testing requires manual actions, because we need a content formed by
On 7/2/2015 22:00, Sergey Bylokhov wrote:
> Hi, Mikhail.
> The test will be useful, at least for verification. On my osx for
> example the test from the bug description fails with
> UnsupportedFlavorException: application/x-java-url
> On 01.07.15 14:27, mikhail cherkasov wrote:
>> Hi there,
>> Could you please review a fix for:
>> 8081787 [macosx] MalformedURLException is thrown during reading data
>> for application/x-java-url;class=java.net.URL flavor
>> Mac Os X pasteboard returns a property list that consists of one URL,
>> but our code supposes to get pure URL. I added extracting URL before
>> text to URL ctor.
>> I'm not sure how to implement a test for the fix, to test it properly
>> we need a particular content in pasteboard, I don't know how to get this
>> without manual coping it.
More information about the awt-dev