Hi Uwe,

I'd like for you to review the attached patch to the gwt-maps API.

The LatLngBounds.newInstance() method was missing a pair of parenthesis
inside the native method body.

M      maps/test/com/google/gwt/maps/client/geom/LatLngBoundsTest.java
M      maps/src/com/google/gwt/maps/client/geom/LatLngBounds.java
-- 
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Index: maps/test/com/google/gwt/maps/client/geom/LatLngBoundsTest.java
===================================================================
--- maps/test/com/google/gwt/maps/client/geom/LatLngBoundsTest.java	(revision 933)
+++ maps/test/com/google/gwt/maps/client/geom/LatLngBoundsTest.java	(working copy)
@@ -128,6 +128,8 @@
   public void testNewInstance() {
     LatLngBounds bounds = LatLngBounds.newInstance();
     assertNotNull(bounds);
+    assertNotNull(bounds.getCenter());
+    
     bounds = LatLngBounds.newInstance(LatLng.newInstance(0, 0),
         LatLng.newInstance(45, 45));
     assertNotNull(bounds);
Index: maps/src/com/google/gwt/maps/client/geom/LatLngBounds.java
===================================================================
--- maps/src/com/google/gwt/maps/client/geom/LatLngBounds.java	(revision 933)
+++ maps/src/com/google/gwt/maps/client/geom/LatLngBounds.java	(working copy)
@@ -28,7 +28,7 @@
    * map.
    */
   public static native LatLngBounds newInstance() /*-{
-    return new $wnd.GLatLngBounds;
+    return new $wnd.GLatLngBounds();
   }-*/;
 
   /**

Reply via email to