Changeset 13647 in josm for trunk/src/gnu/getopt/Getopt.java


Ignore:
Timestamp:
2018-04-19T20:37:16+02:00 (7 years ago)
Author:
Don-vip
Message:

see #16204 - Allow to start and close JOSM in WebStart sandbox mode (where every external access is denied). This was very useful to reproduce some very tricky bugs that occured in real life but were almost impossible to diagnose.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gnu/getopt/Getopt.java

    r12892 r13647  
    657657  // strictly follow the POSIX standard.  This replaces the "POSIXLY_CORRECT"
    658658  // environment variable in the C version
     659  try {
    659660  if (System.getProperty("gnu.posixly_correct", null) == null)
    660661    posixly_correct = false;
     
    665666                             //                      Locale.US);
    666667    }
     668  } catch (SecurityException e) {
     669    System.err.println(e.getMessage());
     670  }
    667671
    668672  // Determine how to handle the ordering of options and non-options
Note: See TracChangeset for help on using the changeset viewer.