Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8000746

Build error due to unsupported "-v" option of date command

XMLWordPrintable

    • b12
    • Not verified

        Changes from JDK-8000248 broke the build. It fails with following symptoms:

            [javac] /tmp/workspace/7u10_deploy-2-build-solaris-i586-product/7u10_deploy/build/solaris-i586/tmp/deploy/java/common/com/sun/deploy/config/BuiltInProperties.java:43: error: illegal start of expression
            [javac] public static final long expirationTime = ((long) ) * 1000;
            [javac] ^
            [javac] 1 error

        And this is caused by wrong use of date utility

        /usr/bin/date: illegal option -- v
        usage: date [-u] mmddHHMM[[cc]yy][.SS]
        date [-u] [+format]
        date -a [-]sss[.fff]

              igor Igor Nekrestyanov (Inactive)
              igor Igor Nekrestyanov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: