Skip to content

Java 1.7 RegExp issue #42

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?

In RpcPolicyFinder.fetchSerializationPolicyName, I'm getting a .nocache file 
properly with this part of text inside:

Vb='D8F2A8CAD85E55AAC0F3E2438006AA86',

From this part the serialization policy name should be extracted but, in Java 
1.7, using the code below the serialization policy string does not match:

 String regex = "\'([A-Z0-9]){32}\'";
    Pattern pattern = Pattern.compile(regex);
    Matcher matcher = pattern.matcher(responseText);
    // while (matcher.find())
    if (matcher.find()){


matcher.find() returns false so it never discovers the proper serialization 
policity. 

I have undergone some other problems with patterns migrating from 1.6 to 1.7

What version of the product are you using? On what operating system?
Java 1.7 Android 5.0 GWT 2.6.1


Please provide any additional information below.

I will submit a workaround as soon as I have one.


Original issue reported on code.google.com by lunarjchav@gmail.com on 4 Nov 2014 at 4:42

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions