jsoliveira / javaapiforkml

Automatically exported from code.google.com/p/javaapiforkml
0 stars 0 forks source link

Re-use JAXB Context across multiple Kml instances #42

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create many KML objects in a loop, marshaling them on each iteration.

What is the expected output? What do you see instead?
Expected: JVM tools (e.g., jvisualvm) show that eventually the number of 
Classes loaded stabilizes
Actual: The number of classes increases without bounds.

What version of the product are you using? On what operating system?
2.2.0

Please provide any additional information below.
According to http://java.net/jira/browse/JAXB-686 and 
http://java.net/jira/browse/JAXB-581 it is preferable to reuse the JAXB context 
rather than recreate it.

Original issue reported on code.google.com by eric.c.d...@gmail.com on 30 Oct 2012 at 8:51