jaxb-ri icon indicating copy to clipboard operation
jaxb-ri copied to clipboard

JAXB fails to generate ValidationEvents for several errors

Open Tomas-Kraus opened this issue 11 years ago • 6 comments

With JAXB 2.0, you can set an EventHandler to inform JAXB whether or not to continue processing whenever it detects an error. However, the current implementation fails to properly generate this event on several occasions, amongst others:

While these errors perhaps should not stop the continued JAXB processing per se, the event should be generated and the event handler should be able to decide whether or not the processing should stop (as its documentation states).

I have some test cases and made some changes to the JAXB classes, so the fix is fairly trivial (and in some cases, for instance in DatatypeConverterImpl, the exceptions were already there, just commented out - was this from 1.0, before the ValidationEvent were introduced?) Would like to share the changes with you if I can get git access.

Environment

Any Java enviroment (seen on Windows and RHEL)

Affected Versions

[2.2.6]

Tomas-Kraus avatar Mar 19 '13 14:03 Tomas-Kraus

  • Issue Imported From: https://github.com/javaee/jaxb-v2/issues/952
  • Original Issue Raised By:@glassfishrobot
  • Original Issue Assigned To: @glassfishrobot

Tomas-Kraus avatar Sep 21 '18 16:09 Tomas-Kraus

@glassfishrobot Commented Reported by anolepk

Tomas-Kraus avatar Mar 19 '13 14:03 Tomas-Kraus

@glassfishrobot Commented yaroska said: Hi,

To be able to contribute please sign Oracle Contributor Agreement 1 (OCA), scan it and e-mail the result to oracle-ca_us(at)oracle.com. More about it you can read in 2.

Tomas-Kraus avatar Mar 22 '13 10:03 Tomas-Kraus

@glassfishrobot Commented mapar70 said: I'm also running into this issue. Is there any update? Thanks.

Tomas-Kraus avatar Nov 25 '15 02:11 Tomas-Kraus

@glassfishrobot Commented Was assigned to yaroska

Tomas-Kraus avatar Mar 19 '13 14:03 Tomas-Kraus

@glassfishrobot Commented This issue was imported from java.net JIRA JAXB-952

Tomas-Kraus avatar Apr 24 '17 12:04 Tomas-Kraus