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

Include locales plugin throws InternalError with "*" specified.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b139
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      Here is the error:

      nsato-mac:/projects/jdk/9/dev 9561 % ./build/macosx-x64/images/jdk/bin/jlink --module-path ./build/macosx-x64/images/jdk/jmods --add-modules jdk.localedata --output ../images --include-locales "*"
      Error: Size of filtered locales is bigger than the original one
      java.lang.InternalError: Size of filtered locales is bigger than the original one
      at jdk.tools.jlink.internal.plugins.IncludeLocalesPlugin.filterOutUnsupportedTags(jdk.jlink@9-internal/IncludeLocalesPlugin.java:326)
      at jdk.tools.jlink.internal.plugins.IncludeLocalesPlugin.lambda$stripUnsupportedLocales$14(jdk.jlink@9-internal/IncludeLocalesPlugin.java:297)
      at java.util.stream.ForEachOps$ForEachOp$OfInt.accept(java.base@9-internal/ForEachOps.java:205)
      at java.util.stream.IntPipeline$4$1.accept(java.base@9-internal/IntPipeline.java:246)
      at java.util.stream.Streams$RangeIntSpliterator.forEachRemaining(java.base@9-internal/Streams.java:104)
      at java.util.Spliterator$OfInt.forEachRemaining(java.base@9-internal/Spliterator.java:699)
      at java.util.stream.AbstractPipeline.copyInto(java.base@9-internal/AbstractPipeline.java:484)
      at java.util.stream.AbstractPipeline.wrapAndCopyInto(java.base@9-internal/AbstractPipeline.java:474)
      at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(java.base@9-internal/ForEachOps.java:151)
      at java.util.stream.ForEachOps$ForEachOp$OfInt.evaluateSequential(java.base@9-internal/ForEachOps.java:189)
      at java.util.stream.AbstractPipeline.evaluate(java.base@9-internal/AbstractPipeline.java:234)
      at java.util.stream.IntPipeline.forEach(java.base@9-internal/IntPipeline.java:417)
      at jdk.tools.jlink.internal.plugins.IncludeLocalesPlugin.stripUnsupportedLocales(jdk.jlink@9-internal/IncludeLocalesPlugin.java:291)
      at jdk.tools.jlink.internal.plugins.IncludeLocalesPlugin.lambda$transform$5(jdk.jlink@9-internal/IncludeLocalesPlugin.java:167)
      at jdk.tools.jlink.plugin.ResourcePool.lambda$transformAndCopy$0(jdk.jlink@9-internal/ResourcePool.java:113)
      at java.util.Iterator.forEachRemaining(java.base@9-internal/Iterator.java:120)
      at java.util.Spliterators$IteratorSpliterator.forEachRemaining(java.base@9-internal/Spliterators.java:1801)
      at java.util.stream.ReferencePipeline$Head.forEach(java.base@9-internal/ReferencePipeline.java:591)
      at jdk.tools.jlink.plugin.ResourcePool.transformAndCopy(jdk.jlink@9-internal/ResourcePool.java:112)
      at jdk.tools.jlink.internal.plugins.IncludeLocalesPlugin.transform(jdk.jlink@9-internal/IncludeLocalesPlugin.java:157)
      at jdk.tools.jlink.internal.ImagePluginStack.visitResources(jdk.jlink@9-internal/ImagePluginStack.java:271)
      at jdk.tools.jlink.internal.ImageFileCreator.generateJImage(jdk.jlink@9-internal/ImageFileCreator.java:185)
      at jdk.tools.jlink.internal.ImageFileCreator.writeImage(jdk.jlink@9-internal/ImageFileCreator.java:164)
      at jdk.tools.jlink.internal.ImageFileCreator.create(jdk.jlink@9-internal/ImageFileCreator.java:99)
      at jdk.tools.jlink.internal.JlinkTask$ImageHelper.retrieve(jdk.jlink@9-internal/JlinkTask.java:490)
      at jdk.tools.jlink.internal.ImagePluginStack.operate(jdk.jlink@9-internal/ImagePluginStack.java:204)
      at jdk.tools.jlink.internal.JlinkTask.createImage(jdk.jlink@9-internal/JlinkTask.java:314)
      at jdk.tools.jlink.internal.JlinkTask.run(jdk.jlink@9-internal/JlinkTask.java:199)
      at jdk.tools.jlink.internal.Main.main(jdk.jlink@9-internal/Main.java:33)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                naoto Naoto Sato
                Reporter:
                naoto Naoto Sato
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: