Ignore:
Timestamp:
2018-05-01T15:35:00+02:00 (6 years ago)
Author:
Don-vip
Message:

see #16243 - do not rely on internal JDK classes, not available on Linux

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java

    r13691 r13692  
    3434import java.io.BufferedWriter;
    3535import java.io.File;
    36 import java.io.FileNotFoundException;
    3736import java.io.IOException;
    3837import java.io.InputStream;
     
    6160import java.security.spec.InvalidKeySpecException;
    6261import java.security.spec.X509EncodedKeySpec;
     62import java.text.ParseException;
    6363import java.util.ArrayList;
    6464import java.util.Arrays;
     
    8181import org.openstreetmap.josm.io.CertificateAmendment.NativeCertAmend;
    8282import org.openstreetmap.josm.spi.preferences.Config;
    83 
    84 import sun.awt.shell.Win32ShellFolderManager2;
    8583
    8684/**
     
    775773        if (file.getName().endsWith(".lnk")) {
    776774            try {
    777                 return new Win32ShellFolderManager2().createShellFolder(file).getLinkLocation();
    778             } catch (FileNotFoundException e) {
     775                return new File(new WindowsShortcut(file).getRealFilename());
     776            } catch (IOException | ParseException e) {
    779777                Logging.error(e);
    780778            }
Note: See TracChangeset for help on using the changeset viewer.