wecoppens / json-smart

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

cannot output the inherit properties from super class? #26

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. defined super class with protected properties.
2. defined sub class inherited from  super
3. output the sub info . But it doesnot any inherited properties.

What is the expected output? What do you see instead?
I wanna see the protected properties in sub class.

What version of the product are you using? On what operating system?
json-smart  1.0.9-1
win7 and centos5 . x64

Please provide any additional information below.
contact by gmail . I need eagerly. 
Thank you!

Original issue reported on code.google.com by linzuxio...@gmail.com on 18 Apr 2012 at 10:00

GoogleCodeExporter commented 8 years ago
please provide a sample code.

Original comment by uriel.chemouni on 30 Apr 2012 at 1:01

GoogleCodeExporter commented 8 years ago
Please provide a sample.

Original comment by uriel.chemouni on 29 Oct 2012 at 1:36

GoogleCodeExporter commented 8 years ago
public class AppInDb {
    protected int softid;
    protected transient String uuid;
    protected String softname;
    protected String infourl;
    // ...getter setter
}

public class App extends AppInDb {
    protected boolean free;
    protected boolean plugin;
    // ...getter setter
}

App dbApp = new App();
dbApp.setSoftname("sssssssssss");
JSONObject json = new JSONObject();
json.put(dbApp );

// json smart output:...

Original comment by linzuxi...@conew.com on 27 Dec 2012 at 7:21

GoogleCodeExporter commented 8 years ago
This Problem is only visible on json-Smart V1
Try to use Json-smart V2

I Will fix that on V1.

Original comment by uriel.chemouni on 6 Jun 2014 at 6:22

GoogleCodeExporter commented 8 years ago
Fixed

Original comment by uriel.chemouni on 6 Jun 2014 at 7:36

GoogleCodeExporter commented 8 years ago

Original comment by uriel.chemouni on 6 Jun 2014 at 7:37

GoogleCodeExporter commented 8 years ago
We have a patch in 2012 .

Original comment by linzuxio...@gmail.com on 7 Jun 2014 at 3:11

GoogleCodeExporter commented 8 years ago

Original comment by uriel.chemouni on 19 Oct 2014 at 8:11