javaee / jaxb2-commons

JAXB Implementation project has been contributed to Eclipse Foundation. This repository is for legacy review only. Please refer to the Eclipse EE4J Metro project for the very latest
https://eclipse-ee4j.github.io/jaxb-ri/
Other
17 stars 15 forks source link

CopyBuilder.copy fails on cloneMethod.isAccessible() when method is accessible #17

Closed glassfishrobot closed 15 years ago

glassfishrobot commented 15 years ago

copy fails incorrectly when a class has a public clone method on cloneMethod.isAccessible().

This issue was seen when copying a com.vividsolutions.jts.geom.Polygon object in jts-1.8.jar even though it has a public clone method:

<[http://www.vividsolutions.com/Jts/javadoc/com/vividsolutions/jts/geom/Polygon.html#clone(](http://www.vividsolutions.com/Jts/javadoc/com/vividsolutions/jts/geom/Polygon.html#clone())>

Attached is a patch that fixes the bug that simply removes the check. If there truly is an inaccessible clone method the existing exception block will catch it.

Environment

Operating System: All Platform: All

Affected Versions

[current]

glassfishrobot commented 15 years ago

Reported by najmi

glassfishrobot commented 15 years ago

najmi said: Created an attachment (id=12) Patch that fixes issue 17

glassfishrobot commented 15 years ago

lexi said: Done in 0.4.1.3.

glassfishrobot commented 15 years ago

File: issue-17-patch.txt Attached By: najmi

glassfishrobot commented 15 years ago

Was assigned to lexi

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA JAXB2_COMMONS-17

glassfishrobot commented 15 years ago

Marked as fixed on Sunday, February 1st 2009, 4:06:19 pm