sedhuait / google-gson

Automatically exported from code.google.com/p/google-gson
0 stars 0 forks source link

Json{Element, Primitive, Null, Object, Array}#deepCopy is package private and can't be used in user code. #573

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Write a program like 'JsonObject obj = new JsonObject(); JsonObject another 
= obj.deepCopy();
2. Compile the program
3. You will see a compilation error.

What is the expected output? What do you see instead?
The compilation should be successfull and I should get the deep copied object 
by the program.

What version of the product are you using? On what operating system?

gson-2.2.4 on Linux(Ubuntu)

Please provide any additional information below.

I have googled around about this issue and didn't find any solution.
Apparently, the method used to be public at the beginning, then it was made 
package private from a certain version.

Original issue reported on code.google.com by daku...@gmail.com on 21 Apr 2014 at 6:15