Skip to content
This repository has been archived by the owner on Feb 5, 2018. It is now read-only.

Commit

Permalink
Java: do not forget to dup the state
Browse files Browse the repository at this point in the history
  • Loading branch information
mernen committed Aug 12, 2010
1 parent c31e1a1 commit e537337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/json/ext/GeneratorState.java
Expand Up @@ -131,7 +131,7 @@ static GeneratorState fromState(ThreadContext context, RuntimeInfo info,
}

// for other values, return the safe prototype
return info.getSafeStatePrototype(context);
return (GeneratorState)info.getSafeStatePrototype(context).dup();
}

/**
Expand Down

0 comments on commit e537337

Please sign in to comment.