Skip to content

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 9, 2010
1 parent 9acbc62 commit 4223670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/json/ext/GeneratorState.java
Original file line number Diff line number Diff line change
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 4223670

Please sign in to comment.