Skip to content
This repository has been archived by the owner on Jun 26, 2021. It is now read-only.

Fix for multiple root objects in JSON #104

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ lib
.project
.classpath
java-gen
/bin/
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ private EObject postDeserialize(TokenBuffer buffer, EObject object, EClass defau

jp.close();
buffer.close();

EMFContext.setParent(ctxt, null);
EMFContext.setFeature(ctxt, null);

return object;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ public void resolve(DatabindContext context, URIHandler handler) {
target = resource.getEObject(id);

if (target == null) {

URI baseURI = resource.getURI().trimFragment();
URI uri = handler.resolve(baseURI, URI.createURI(id));

Expand Down