mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-18 14:58:47 +00:00
Fix for Issue 11 - Jaxrs and Inheritance - BeanDescriptor bug
This commit is contained in:
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 {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user