Modify

Opened 11 years ago

Closed 11 years ago

#8890 closed defect (fixed)

Notes plugin uses Java 7 API and cannot be used with Java 6 runtime

Reported by: Luebeck Owned by: ToeBee
Priority: blocker Milestone:
Component: Core notes Version:
Keywords: java7 Cc:

Description (last modified by Don-vip)

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2013-07-20 01:35:44
Last Changed Author: stoecker
Revision: 6077
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2013-07-19 21:55:32 +0200 (Fri, 19 Jul 2013)
Last Changed Rev: 6077

Identification: JOSM/1.5 (6077 de) Windows 7 64-Bit
Memory Usage: 223 MB / 910 MB (57 MB allocated, but free)
Java version: 1.6.0_45, Sun Microsystems Inc., Java HotSpot(TM) 64-Bit Server VM
VM arguments: [-Xmx1024M]
Dataset consistency test: No problems found

Plugin: AddrInterpolation (29435)
Plugin: HouseNumberTaggingTool (29487)
Plugin: ImportImagePlugin (29531)
Plugin: OpeningHoursEditor (29435)
Plugin: RoadSigns (29699)
Plugin: buildings_tools (29596)
Plugin: geotools (29435)
Plugin: jts (29613)
Plugin: log4j (29435)
Plugin: measurement (29750)
Plugin: notes (db0305d)
Plugin: openstreetbugs (29435)
Plugin: pdfimport (29646)
Plugin: print (29529)
Plugin: reverter (29663)
Plugin: terracer (29623)
Plugin: utilsplugin2 (29742)
Plugin: wikipedia (29523)

java.lang.NoSuchMethodError: javax.swing.JList.getSelectedValuesList()Ljava/util/List;
	at org.openstreetmap.josm.plugins.notes.gui.NotesDialog.valueChanged(NotesDialog.java:239)
	at javax.swing.JList.fireSelectionValueChanged(Unknown Source)
	at javax.swing.JList$ListSelectionHandler.valueChanged(Unknown Source)
	at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
	at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
	at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
	at javax.swing.DefaultListSelectionModel.changeSelection(Unknown Source)
	at javax.swing.DefaultListSelectionModel.changeSelection(Unknown Source)
	at javax.swing.DefaultListSelectionModel.setSelectionInterval(Unknown Source)
	at javax.swing.JList.setSelectionInterval(Unknown Source)
	at javax.swing.plaf.basic.BasicListUI$Handler.adjustSelection(Unknown Source)
	at javax.swing.plaf.basic.BasicListUI$Handler.mousePressed(Unknown Source)
	at java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
	at java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
	at java.awt.Component.processMouseEvent(Unknown Source)
	at javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$400(Unknown Source)
	at java.awt.EventQueue$2.run(Unknown Source)
	at java.awt.EventQueue$2.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)

Attachments (0)

Change History (4)

comment:1 by AlfonZ, 11 years ago

Priority: normalblocker

javax.swing.JList.getSelectedValuesList requires Java 1.7

comment:2 by Don-vip, 11 years ago

Description: modified (diff)
Keywords: java7 added; template_report removed
Summary: error by use notes-pluginNotes plugin uses Java 7 API and cannot be used with Java 6 runtime

comment:3 by ToeBee, 11 years ago

Status: newassigned

comment:4 by ToeBee, 11 years ago

Resolution: fixed
Status: assignedclosed

Well the best way to fix this is to upgrade to java 7 :)

However considering that java 6 is still used by a big portion of JOSM users (see discussion on #8465), I have undone all the generics that broke JList and have pushed an update that should work with java 6.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain ToeBee.
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.