yuwei5380 / jsonplugin

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

exception occured when i defined two classes in one .java file. #102

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. define a root property in an action<param 
name="root">bulletinJson</param>)
2. define an class(private BulletinJson bulletinJson;)
3. the BulletinJson needs another class(e.g. Cell) to describe the 
result,so i defined another class in the same .java file.
4. so, when the .java file corresponding to the root property contains two 
classes(one if public ,another is default of course), exception occured.

but,when i moved the Cell class to a separted .java,it works good.

What is the expected output? What do you see instead?
com.googlecode.jsonplugin.JSONException: 
com.googlecode.jsonplugin.JSONException: java.lang.IllegalAccessException: 
Class com.googlecode.jsonplugin.JSONWriter can not access a member of 
class com.linkage.system.components.dhcp.ui.json.BulletinJsonCell with 
modifiers "public"
    at com.googlecode.jsonplugin.JSONWriter.bean(JSONWriter.java:239)

What version of the product are you using? On what operating system?
struts2.1.6,win xp sp2

Please provide any additional information below.
not yet.

Original issue reported on code.google.com by shor...@gmail.com on 4 Jan 2010 at 1:13

Attachments: