Fix for Issue 11 - Jaxrs and Inheritance - BeanDescriptor bug

This commit is contained in:
Robin Bygrave committed 2013-04-25 16:10:34 +12:00
1 parent 85f3a8987d
commit 97cc2984cf
7 files changed
+188 -13

No files matched your search

@@ -8,10 +8,18 @@ public class ReadBasicJsonContext implements ReadJsonInterface {
private char tokenStart;
private String tokenKey;
private boolean pushedTokenKey;
public ReadBasicJsonContext(ReadJsonSource src) {
this.src = src;
}
/**
* Push the current token key back onto the 'stack'.
*/
public void pushTokenKey() {
pushedTokenKey = true;
}
public char getToken() {
return tokenStart;
@@ -84,7 +92,13 @@ public class ReadBasicJsonContext implements ReadJsonInterface {
}
public void readNextToken() {
if (pushedTokenKey) {
// Do nothing
pushedTokenKey = false;
return;
}
ignoreWhiteSpace();
tokenStart = src.nextChar("EOF finding next token");
@@ -179,4 +179,6 @@ public class ReadJsonContext extends ReadBasicJsonContext {
}
}