[ 
http://jira.codehaus.org/browse/JIBX-287?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dennis Sosnoski resolved JIBX-287.
----------------------------------

         Assignee: Dennis Sosnoski
       Resolution: Fixed
    Fix Version/s: JiBX 1.2.2

You are able to use classes in bindings in some ways without being able to 
modify the class files, with some limitations (only public fields or methods, 
<mapping> definitions are not directly associated with classes so you can't 
case to IMarshallable or IUnmarshallable).

Without seeing the details of your error I can't be sure what went wrong (and 
I'm not willing to go through the work of trying to figure out the maven usage 
to duplicate it), but I did find one problem which occurs when you're working 
with unmodifiable classes and the binding definition doesn't specify a package 
attribute. I've fixed this problem in the current code, and I'm now able to 
compile your class and put it in a jar, then compile the binding (which 
generated some JiBX binding classes in the default package) without error.

> Error during generate binding for class from other jar (added as dependency)
> ----------------------------------------------------------------------------
>
>                 Key: JIBX-287
>                 URL: http://jira.codehaus.org/browse/JIBX-287
>             Project: JiBX
>          Issue Type: Bug
>          Components: maven plugin
>    Affects Versions: JiBX 1.1.6, JiBX 1.2.1
>         Environment: jdk 1.6_12, windows
>            Reporter: Dariusz Skrudlik
>            Assignee: Dennis Sosnoski
>             Fix For: JiBX 1.2.2
>
>         Attachments: dsk-binding.zip, dsk-model.zip
>
>
> I have two project: dsk-model and dsk-binding. In dsk-model is only one 
> tested class. In dsk-binding is mapping file for it (have dependency to 
> dsk-model).
> When I try compile dsk-binding then get error
> D:\Workspaces\maven\DSK\dsk-binding>set 
> JAVA_HOME=C:\Progra~1\Java\jdk1.6.0_12\ 
> Scanning for projects...
> ------------------------------------------------------------------------
> Building dsk-binding
>    task-segment: [clean, install]
> ------------------------------------------------------------------------
> [clean:clean]
> [resources:resources]
> Using default encoding to copy filtered resources.
> snapshot dsk:dsk-model:0.1-SNAPSHOT: checking for updates from snapshots-skg
> snapshot dsk:dsk-model:0.1-SNAPSHOT: checking for updates from 
> snapshots-mirror-in-skg
> [compiler:compile]
> Nothing to compile - all classes are up to date
> [jibx:bind {execution: default}]
> Running JiBX binding compiler (single-module mode) on 1 binding file(s)
> Running binding compiler version jibx_1_2_1
> binding Simple_binding:
>  context (mp#=1) (cv#=0) (fm#=0)
>   mapping class com.dsk.test.Simple to element Simple
>    context (ns#=1) (cv#=0) (fm#=0)
>     namespace http://rep.xmlstandards.eu/dsk/Simple.xsd (default elements)
>    element wrapper Simple
>     object binding for com.dsk.test.Simple create class com.dsk.test.Simple
>      structure ordered
>       element wrapper Header
> ------------------------------------------------------------------------
> [ERROR]BUILD ERROR
> ------------------------------------------------------------------------
> *** Error during code generation for file 
> 'D:\Workspaces\maven\DSK\dsk-binding\src\main\resources\bindings\Simple-binding.xml'
>  - please enter a bug report for this error in Jira if the problem is not 
> listed as fixed on the online status page ***
> ------------------------------------------------------------------------
> For more information, run Maven with the -e switch
> ------------------------------------------------------------------------
> Total time: 3 seconds
> Finished at: Tue Mar 31 21:23:07 CEST 2009
> Final Memory: 6M/12M
> ------------------------------------------------------------------------
> From other side when I move class from dsk-model to dsk-binding then all 
> works fine.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
jibx-devs mailing list
jibx-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to