Infinite loop in GData API v1.27

22 views
Skip to first unread message

tazmaniac

unread,
Dec 16, 2008, 10:16:53 AM12/16/08
to Google Data Protocol
An infinite loop occurs while trying to precompute the SINGLE_WIDTH
CharMatcher instance after upgrading from GData API v1.24 to GData API
v1.27 under JDK1.5 on OS X. Here is the stack trace from our
application:

Thread [Thread-1] (Suspended)
CharMatcher$15.setBits(CharMatcher$LookupTable) line: 455
CharMatcher$Or.setBits(CharMatcher$LookupTable) line: 579
CharMatcher$Or(CharMatcher).precomputed() line: 595
CharMatcher.<clinit>() line: 321
StringUtil.megastrip(String, boolean, boolean, String) line:
335
StringUtil.strip(String) line: 377
StringUtil.string2Map(String, String, String, boolean) line:
1916
GoogleAuthTokenFactory.getAuthToken(String, String, String,
String,
String, String) line: 426
GoogleAuthTokenFactory.setUserCredentials(String, String,
String,
String) line: 301
ContactsService(GoogleService).setUserCredentials(String,
String,
String, String) line: 323
ContactsService(GoogleService).setUserCredentials(String,
String)
line: 300

I can also reproduce the same symptom using the following test class:

public class TestCharMatcher {

/**
*
*/
public TestCharMatcher() {
super();
}

public static void main(String[] args) {
CharMatcher matcher = CharMatcher.anyOf
(StringUtil.WHITE_SPACES);
System.out.println(matcher);
}
}

With the following stack trace:

Thread [main] (Suspended)
CharMatcher$15.setBits(CharMatcher$LookupTable) line: 455
CharMatcher$Or.setBits(CharMatcher$LookupTable) line: 579
CharMatcher$Or(CharMatcher).precomputed() line: 595
CharMatcher.<clinit>() line: 321
TestCharMatcher.main(String[]) line: 20

I was wondering if this was a known issue.

regards,
chris

Jeff Fisher

unread,
Dec 16, 2008, 5:24:11 PM12/16/08
to google-he...@googlegroups.com
Can you file a bug report on the project page for the Java client?

http://code.google.com/p/gdata-java-client/issues/list

Cheers,
-Jeff

Chris Webb

unread,
Dec 17, 2008, 5:15:15 PM12/17/08
to google-he...@googlegroups.com
Done.

cheers,
chris

Jeff Fisher

unread,
Dec 18, 2008, 3:15:54 AM12/18/08
to google-he...@googlegroups.com
Since the guy who takes care of the Java client is all kinds of awesome, he pushed out a new version that should fix your issue.

Cheers,
-Jeff

Chris Webb

unread,
Dec 18, 2008, 11:02:31 AM12/18/08
to google-he...@googlegroups.com
Impressive turn around, nice one. Pass on my thanks. I will test shortly - struggling with flu here.

cheers,
chris
Reply all
Reply to author
Forward
0 new messages