Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25913

Android: Build fails for android with java.time.DateTimeException with java 9.0.4 & crittercism

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 7.1.1
    • Component/s: Android
    • Labels:
    • Environment:
    • Story Points:
      5
    • Sprint:
      2018 Sprint 07 SDK

      Description

      Steps to reproduce:

      1. Build an android app with SDK having fix for java 9 support.

      Actual results:

      1. The build will fail with error:

      [ERROR] Failed to compile Java source files:
      [ERROR]   
      [ERROR] An exception has occurred in the compiler (9.0.4). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
      [ERROR] java.time.DateTimeException: Invalid value for MonthOfYear (valid values 1 - 12): 0
      [ERROR]         at java.base/java.time.temporal.ValueRange.checkValidValue(ValueRange.java:311)
      [ERROR]         at java.base/java.time.temporal.ChronoField.checkValidValue(ChronoField.java:714)
      [ERROR]         at java.base/java.time.LocalDate.of(LocalDate.java:269)
      [ERROR]         at java.base/java.time.LocalDateTime.of(LocalDateTime.java:336)
      [ERROR]         at jdk.zipfs/jdk.nio.zipfs.ZipUtils.dosToJavaTime(ZipUtils.java:109)
      [ERROR]         at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem$Entry.cen(ZipFileSystem.java:1950)
      [ERROR]         at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem$Entry.readCEN(ZipFileSystem.java:1937)
      [ERROR]         at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.getEntry(ZipFileSystem.java:1324)
      [ERROR]         at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.getFileAttributes(ZipFileSystem.java:312)
      [ERROR]         at jdk.zipfs/jdk.nio.zipfs.ZipPath.getAttributes(ZipPath.java:721)
      [ERROR]         at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.readAttributes(ZipFileSystemProvider.java:293)
      [ERROR]         at java.base/java.nio.file.Files.readAttributes(Files.java:1755)
      [ERROR]         at java.base/java.nio.file.FileTreeWalker.getAttributes(FileTreeWalker.java:219)
      [ERROR]         at java.base/java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:276)
      [ERROR]         at java.base/java.nio.file.FileTreeWalker.next(FileTreeWalker.java:373)
      [ERROR]         at java.base/java.nio.file.Files.walkFileTree(Files.java:2749)
      [ERROR]         at jdk.compiler/com.sun.tools.javac.file.JavacFileManager$ArchiveContainer.<init>(JavacFileManager.java:523)
      [ERROR]         at jdk.compiler/com.sun.tools.javac.file.JavacFileManager.getContainer(JavacFileManager.java:319)
      [ERROR]         at jdk.compiler/com.sun.tools.javac.file.JavacFileManager.list(JavacFileManager.java:715)
      [ERROR]         at jdk.compiler/com.sun.tools.javac.code.ClassFinder.list(ClassFinder.java:722)
      [ERROR]         at jdk.compiler/com.sun.tools.javac.code.ClassFinder.scanPlatformPath(ClassFinder.java:673)
      [ERROR]         at jdk.compiler/com.sun.tools.javac.code.ClassFinder.fillIn(ClassFinder.java:525)
      [ERROR]         at jdk.compiler/com.sun.tools.javac.code.ClassFinder.complete(ClassFinder.java:293)
      [ERROR]         at jdk.compiler/com.sun.tools.javac.code.Symbol.complete(Symbol.java:633)
      [ERROR]         at jdk.compiler/com.sun.tools.javac.code.Symbol$PackageSymbol.members(Symbol.java:1120)
      [ERROR]         at jdk.compiler/com.sun.tools.javac.code.Symtab.listPackageModules(Symtab.java:810)
      [ERROR]         at jdk.compiler/com.sun.tools.javac.comp.Enter.visitTopLevel(Enter.java:344)
      [ERROR]         at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:529)
      [ERROR]         at jdk.compiler/com.sun.tools.javac.comp.Enter.classEnter(Enter.java:285)
      [ERROR]         at jdk.compiler/com.sun.tools.javac.comp.Enter.classEnter(Enter.java:300)
      [ERROR]         at jdk.compiler/com.sun.tools.javac.comp.Enter.complete(Enter.java:570)
      [ERROR]         at jdk.compiler/com.sun.tools.javac.comp.Enter.main(Enter.java:554)
      [ERROR]         at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:1052)
      [ERROR]         at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:923)
      [ERROR]         at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:302)
      [ERROR]         at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:162)
      [ERROR]         at jdk.compiler/com.sun.tools.javac.Main.compile(Main.java:57)
      [ERROR]         at jdk.compiler/com.sun.tools.javac.Main.main(Main.java:43)
      

      Expected result:

      1. The build should be successful.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                lchoudhary Lokesh Choudhary
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-6270
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code