﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
12875	[Patch] Add data to bug report	michael2402	team	"See #12805

Adds a new error reporting class that allows you to add more information to a crash that happened.

I plan to extend the class BugReport to create the report text (status report, ...) in the next days.

I already added the catch code to MapView. Whenever an error happens during drawing the map, information about the layers that are displayed is printed. Those catch blocks don't cost any performance, so we can add as many as we want.

The report then looks like this:
{{{
=== REPORTED CRASH DATA ===
MapView#paintLayer:
 - layer: org.openstreetmap.josm.gui.layer.OsmDataLayer@6d4a427a
 - bounds: Bounds[49.4938256,8.0819993,49.4976837,8.0879016]

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (16) of main
java.lang.RuntimeException: test
	at org.openstreetmap.josm.gui.layer.OsmDataLayer.paint(OsmDataLayer.java:408)
	at org.openstreetmap.josm.gui.MapView.paintLayer(MapView.java:740)
	at org.openstreetmap.josm.gui.MapView.paint(MapView.java:811)
	at javax.swing.JComponent.paintChildren(JComponent.java:879)
...
}}}"	enhancement	closed	normal	16.05	Core bugreport		fixed	gsoc-core	Don-vip bastiK stoecker
