Skip to main content

question on JAXB and private constructors

1 reply [Last post]
cdj4real
Offline
Joined: 2003-06-19
Points: 0

In his blog entry at
http://weblogs.java.net/blog/kohsuke/archive/2005/02/jaxb_20_and_imm_1.html
...Kohsuke offers a workaround solution for immutable objects that includes a private no-arg constructor for use only by JAXB.

How does JAXB manage to call a *private* constructor?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kohsuke
Offline
Joined: 2003-06-09
Points: 0

We fall back to reflection.