Opened 9 years ago

Last modified 7 years ago

#14120 closed defect

Remove methods deprecated during gsoc-core — at Version 24

Reported by: Don-vip Owned by: michael2402
Priority: normal Milestone: 18.06
Component: Core Version:
Keywords: gsoc-core Cc: bastiK

Description (last modified by michael2402)

Deprecated features from gsoc-core to remove, which are still used in core or plugins:

  • LatLon.heading(): used in 5 plugins: improveway, iodb, nanolog, photoadjust, rex
  • Preferences.getColor(): used in MapCSSParser + 4 plugins: utilsplugin2, commandLine, routing, graphview
  • Layer.isChanged(): used in MapView, GpxLayer, AbstractTileSourceLayer + plugin osminspector
  • ImageryLayer.getDx()/getDy()/setOffset()/displace(): used in ApplyOffsetAction, ImageryLayer + 4 plugins: commandLine, imageryadjust, iodb, irsrectify

Change History (24)

comment:1 by Don-vip, 9 years ago

Milestone: 16.1217.01

comment:2 by michael2402, 9 years ago

Milestone: 17.0117.03

I don't have much time right now and won't have until March 31. I would like to re-schedule this one for milestone 17.4 (I just put it to 17.3, since there is no 17.4 yet).

comment:3 by Don-vip, 9 years ago

Milestone: 17.0317.04

ok thanks for the heads up :)

comment:4 by stoecker, 8 years ago

In 11623/josm:

see #14120 - fix deprecation in core

comment:5 by Don-vip, 8 years ago

In 11631/josm:

see #14120 - update to JavaCC 7.0.2 - patched to avoid error-prone compilation warnings by removing everything related to ReInit methods in ParseGen.java and SimpleCharStream.template

comment:6 by Don-vip, 8 years ago

The only warnings in core now concern Layer.isChanged().

comment:7 by stoecker, 8 years ago

@michael2402:

Can you please give fixing the deprecations highest priority? We need to get a clean state, before we start other deprecations.

comment:8 by michael2402, 8 years ago

Status: newassigned

comment:9 by Don-vip, 8 years ago

Type: enhancementdefect

comment:10 by Don-vip, 8 years ago

14.04 is due in two weeks, can you please fix the core deprecation warnings before that?

comment:11 by Don-vip, 8 years ago

I think I have updated all the plugins now. But it seems we still have a bug in core:

  • #13503: IAE: Cannot paint layer, it is not registered (TMSLayer)
  • #13604: IAE: Cannot paint layer, it is not registered (OsmDataLayer)
  • #13886: IAE: Cannot paint layer, it is not registered (ValidatorLayer)
  • #14234: IAE: Cannot paint layer, it is not registered (GeoImageLayer)
  • #13589: IAE: Cannot paint layer, it is not registered (ElevationProfileLayer)

comment:12 by Don-vip, 8 years ago

One week left before 14.04. Because of #14604 impacting lots of users, and with #7427 being fixed, the release date this month will not shift.

comment:13 by michael2402, 8 years ago

I've been busy the last week, but I have lots of time this one.

comment:14 by michael2402, 8 years ago

In 12014/josm:

See #14120: Use a listener to get notified of way segment / virtual node highlight changes.

comment:15 by Don-vip, 8 years ago

Two unit tests are failing.

comment:16 by michael2402, 8 years ago

I already saw that. Some problem with the test framework removing a layer twice, i'm debugging it but tests always take some time to run ;-)

comment:17 by Don-vip, 8 years ago

ok thanks :) I tried to fix them but didn't understand the error.

comment:18 by Don-vip, 8 years ago

In 12020/josm:

see #14120 - checkstyle

comment:19 by michael2402, 8 years ago

In 12023/josm:

See #14120: Do not overwrite the mapView field for unit tests. Fix map view scale/center.

comment:20 by michael2402, 8 years ago

In 12024/josm:

See #14120: Fix unit tests by using a separate layer manager when mocking the map view.

comment:21 by michael2402, 8 years ago

In 12025/josm:

See #14120: Throw a nicer exception if a layer is destroyed twice.

comment:22 by michael2402, 8 years ago

I found the problem:

The map view handles the layer lifecycle. If tests create multiple map views for the same layer, each map view destroys the layers during test exit - so we have several destroy() calls. I removed one of the places where MapViewMock is used. We could completely remove that Mock, I think.

comment:23 by Don-vip, 8 years ago

In 12028/josm:

see #14120 - fix java warnings

comment:24 by michael2402, 8 years ago

Description: modified (diff)
Milestone: 17.0417.05
Note: See TracTickets for help on using tickets.