Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-4287

call to System.getProperty in BCClass.java is not wrapped in a priv block so may fail when running under SecurityManager

    XMLWordPrintableJSON

    Details

    • Issue & fix info:
      Newcomer

      Description

      I noticed in org.apache.derby.impl.services.bytecode.BCClass.java we have this code:

      String systemHome = System.getProperty(Property.SYSTEM_HOME_PROPERTY,".");
      writeClassFile(systemHome,false,null);

      which will fail when run under security manager because we have no privilege block.

        Attachments

        1. fost.zip
          2 kB
          Katherine Marsden
        2. derby-4287_diff.txt
          3 kB
          Katherine Marsden

          Activity

            People

            • Assignee:
              kmarsden Katherine Marsden
              Reporter:
              kmarsden Katherine Marsden
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: