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

OutputAnalyzer.shouldMatchByLine() fails in some cases

    XMLWordPrintable

Details

    • b16

    Backports

      Description

        OutputAnalyzer.shouldMatchByLine() fails as follows:

        java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 114
        [1.223s][debug][cds,class ] klasses[ 818] = 0x0000000800218758 app LambdasWithSameKey$$Lambda/0x800000002 ** hidden

                                          ^
                at java.base/java.util.regex.Pattern.error(Pattern.java:2204)
                at java.base/java.util.regex.Pattern.sequence(Pattern.java:2379)
                at java.base/java.util.regex.Pattern.expr(Pattern.java:2245)
                at java.base/java.util.regex.Pattern.compile(Pattern.java:1945)
                at java.base/java.util.regex.Pattern.<init>(Pattern.java:1576)
                at java.base/java.util.regex.Pattern.compile(Pattern.java:1101)
                at jdk.test.lib.process.OutputAnalyzer.indexOf(OutputAnalyzer.java:759)
                at jdk.test.lib.process.OutputAnalyzer.shouldMatchByLine(OutputAnalyzer.java:726)
                at jdk.test.lib.process.OutputAnalyzer.shouldMatchByLine(OutputAnalyzer.java:700)
                at LambdasInTwoArchives.checkTest(LambdasInTwoArchives.java:61)

        Attachments

          Issue Links

            Activity

              People

                lmesnik Leonid Mesnik
                ccheung Calvin Cheung
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: