[
https://jira.jboss.org/browse/JBIDE-6152?page=com.atlassian.jira.plugin.s...
]
Brian Fitzpatrick commented on JBIDE-6152:
------------------------------------------
So now we're able to generate a Smooks config version of the incoming class. For
example, I have a HelloWorld class with a set/getSomeData method that returns an integer.
I get this out of smooks:
<?xml version="1.0" encoding="UTF-8"
standalone="no"?>
<some.pkg.HelloWorld>
<somedata>1</somedata>
</some.pkg.HelloWorld>
How do I munge this into the JavaBeanModel class?
Configs for Java Sources where the class package name includes
underscores is not being generated properly
----------------------------------------------------------------------------------------------------------
Key: JBIDE-6152
URL:
https://jira.jboss.org/browse/JBIDE-6152
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: smooks
Affects Versions: 3.1.0.GA
Reporter: Tom Fennelly
Assignee: Brian Fitzpatrick
Fix For: 3.2.0.Beta
Attachments: patch_phase1.txt
XStream is used to convert Java Sources to a stream of SAX events. If the source class
has underscores in the package (and maybe class too) name, XStream passes these on as
double underscores in the event stream.
We should never hit this if we use Smooks to generate the model for the editor Vs what
seems to be happening here i.e. the editor is trying to "guess" how the input
reader will interpret.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira