Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#12073 closed defect (fixed)

"sort values" results in exception

Reported by: malenki Owned by: team
Priority: critical Milestone: 15.11
Component: Core Version: latest
Keywords: template_report regression Cc: simon04


What steps will reproduce the problem?

  1. Have a data layer in JOSM with at least one object with two tags
  2. select it
  3. Click on "Value" in the properties window.

What is the expected result?

Sort values

What happens instead?


Please provide any additional information below. Attach a screenshot if possible.

The possibility to sort keys and values and seemingly also the issue was introduced between r8973 and r8985, sorting keys works fine.
I set the priority to "critical" since it is nearly impossible to continue mapping after having triggered this exception because every selection and de-selection of tagged objects will throw another exception.
Tested with blank ~/.josm
Exists also in r8993

Repository Root:
Build-Date: 2015-11-03 02:34:09
Last Changed Author: Don-vip
Revision: 8985
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Relative URL: ^/trunk
Last Changed Date: 2015-11-03 01:12:42 +0100 (Tue, 03 Nov 2015)
Last Changed Rev: 8985

Identification: JOSM/1.5 (8985 de) Linux LMDE 2 Betsy
Memory Usage: 303 MB / 2222 MB (144 MB allocated, but free)
Java version: 1.7.0_85, Oracle Corporation, OpenJDK 64-Bit Server VM
Java package: openjdk-7-jre:amd64-7u85-2.6.1-6+deb8u1
VM arguments: [-Dsun.java2d.opengl=false]
Dataset consistency test: No problems found

Last errors/warnings:
- E: java.lang.ClassCastException: java.util.TreeMap cannot be cast to java.lang.String

java.lang.ClassCastException: java.util.TreeMap cannot be cast to java.lang.String
	at javax.swing.DefaultRowSorter.access$100(
	at javax.swing.DefaultRowSorter$Row.compareTo(
	at javax.swing.DefaultRowSorter$Row.compareTo(
	at java.util.Arrays.mergeSort(
	at java.util.Arrays.legacyMergeSort(
	at java.util.Arrays.sort(
	at javax.swing.DefaultRowSorter.sort(
	at javax.swing.DefaultRowSorter.setSortKeys(
	at javax.swing.DefaultRowSorter.toggleSortOrder(
	at javax.swing.plaf.basic.BasicTableHeaderUI$MouseInputHandler.mouseClicked(
	at java.awt.AWTEventMulticaster.mouseClicked(
	at java.awt.Component.processMouseEvent(
	at javax.swing.JComponent.processMouseEvent(
	at java.awt.Component.processEvent(
	at java.awt.Container.processEvent(
	at java.awt.Component.dispatchEventImpl(
	at java.awt.Container.dispatchEventImpl(
	at java.awt.Component.dispatchEvent(
	at java.awt.LightweightDispatcher.retargetMouseEvent(
	at java.awt.LightweightDispatcher.processMouseEvent(
	at java.awt.LightweightDispatcher.dispatchEvent(
	at java.awt.Container.dispatchEventImpl(
	at java.awt.Window.dispatchEventImpl(
	at java.awt.Component.dispatchEvent(
	at java.awt.EventQueue.dispatchEventImpl(
	at java.awt.EventQueue.access$300(
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	at java.awt.EventQueue.dispatchEvent(
	at java.awt.EventDispatchThread.pumpOneEventForFilters(
	at java.awt.EventDispatchThread.pumpEventsForFilter(
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(
	at java.awt.EventDispatchThread.pumpEvents(
	at java.awt.EventDispatchThread.pumpEvents(

Attachments (0)

Change History (4)

comment:1 by Don-vip, 8 years ago

Milestone: 15.11

comment:2 by Don-vip, 8 years ago

Cc: simon04 added
Keywords: regression added

introduced in r8980?

comment:3 by simon04, 8 years ago

Resolution: fixed
Status: newclosed

In 8996/josm:

fix #12073 - Properties dialog: make sorting by values work w/o CCE

comment:4 by Don-vip, 8 years ago

Ticket #12079 has been marked as a duplicate of this ticket.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.