jcricket/gwt-syncproxy

Java 1.7 RegExp issue

Closed this issue · 2 comments

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

  • Merged into: #35
Sorry, in the end it seemed to be a problem related to XSI-FrameLinker instead 
of Java 1.7.

I have just posted a fix to work with XSI-FrameLinker which is working for me 
here:

https://code.google.com/p/gwt-syncproxy/issues/detail?id=35

Original comment by lunarjchav@gmail.com on 4 Nov 2014 at 7:22

Duplicate of Issue 35 acknowledged, along with recommended fix

Original comment by p.pr...@blueesoteric.com on 25 Dec 2014 at 2:59

  • Changed state: Duplicate