Hi Alistair,

It looks like the code is there for handling subclasses. Is there any 
data present in the OutputStream inner class? If not, that's the reason 
for the exception - you need to tell the binding generator to ignore the 
reference to the inner class (which probably requires you to use the '$' 
notation rather than standard Java '.' naming for the inner class).

On a side grumble, I think the decision to overload '.' for inner 
classes in Java was a mistake. It's annoying that 
some.package.TempByteHolder.OutputStream can mean either the 
OutputStream inner class of TempByteHolder, or the OutputStream class in 
the TempByteHolder package. That's why JiBX requires you to use a '$' 
separator for inner classes instead of '.' (though I'll probably have to 
change that with version 2).

  - Dennis

Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



Alistair Young wrote:
> Hi there,
>
> I have a class TempByteHolder that has a member variable that points 
> to an inner class TempByteHolder.OutputStream:
>
> public class TempByteHolder {
>   TempByteHolder.OutputStream _output_stream = new 
> TempByteHolder.OutputStream();
>
>   class OutputStream extends java.io.OutputStream {
>     ...
>   }
> }
>
> When I run the binding generator I get the error:
>
> org.jibx.runtime.JiBXException: No content found for class 
> TempByteHolder$OutputStream
>
> is there a way to handle inner classes with the binding generator?
>
> thanks,
>
> Alistair
>
>
> --------------
> mov eax,1 
> mov ebx,0
> int 80h
>
>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ------------------------------------------------------------------------
>
> _______________________________________________
> jibx-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>   

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to