Index: src/org/openstreetmap/josm/data/osm/WaySegment.java
===================================================================
--- src/org/openstreetmap/josm/data/osm/WaySegment.java	(revision 17894)
+++ src/org/openstreetmap/josm/data/osm/WaySegment.java	(working copy)
@@ -5,8 +5,23 @@
  * A segment consisting of 2 consecutive nodes out of a way.
  */
 public final class WaySegment extends IWaySegment<Node, Way> {
+    
+    /**
+     * The way (kept for binary compatibility)
+     * @deprecated Use {@code IWaySegment.way} instead.
+     */
+    @Deprecated
+    public final Way way;
 
     /**
+     * The index of one of the 2 nodes in the way. The other node has the
+     * index {@code lowerIndex + 1}.
+     * @deprecated Use {@code IWaySegment.lowerIndex} instead.
+     */
+    @Deprecated
+    public final int lowerIndex;
+
+    /**
      * Constructs a new {@code IWaySegment}.
      *
      * @param way The way
@@ -15,6 +30,8 @@
      */
     public WaySegment(Way way, int i) {
         super(way, i);
+        this.way = super.way;
+        this.lowerIndex = super.lowerIndex;
     }
 
     /**
