You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 5, 2019. It is now read-only.
/* restore the error count to 10 again, because we do not want to miss any errors! */
Glue.setPrivate(com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.class,"errorsCounter",Integer.valueOf(10));
My Glue class uses reflection to set the value of a private member.
It became necessary, because in my code it is essential, that the system does not decide to throw any errors any more, after 10 of them have been encountered.
However, turning all of JAXB into modules (not a good idea in my opinion) will break that kludge, because private members in modules become inaccessible.
Therefore it becomes very important, that the old problem of limiting the number of exceptions with a static counter is fixed! (If nothing else appears acceptable, at least a system property should be introduced to suppress the decrementing of the counter.)
The text was updated successfully, but these errors were encountered:
In my code, I have an old kludge:
/* restore the error count to 10 again, because we do not want to miss any errors! */
Glue.setPrivate(com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.class,"errorsCounter",Integer.valueOf(10));
My Glue class uses reflection to set the value of a private member.
It became necessary, because in my code it is essential, that the system does not decide to throw any errors any more, after 10 of them have been encountered.
However, turning all of JAXB into modules (not a good idea in my opinion) will break that kludge, because private members in modules become inaccessible.
Therefore it becomes very important, that the old problem of limiting the number of exceptions with a static counter is fixed! (If nothing else appears acceptable, at least a system property should be introduced to suppress the decrementing of the counter.)
The text was updated successfully, but these errors were encountered: