2006-07-14 Sven de Marothy <[EMAIL PROTECTED]>
* java/awt/font/TextLayout.java:
(hitTestChar): Stub method.
* java/awt/font/TextMeasurer.java:
(getLayout): Throw exception on invalid argument.
Index: java/awt/font/TextLayout.java
===================================================================
RCS file: /sources/classpath/classpath/java/awt/font/TextLayout.java,v
retrieving revision 1.13
diff -U3 -r1.13 TextLayout.java
--- java/awt/font/TextLayout.java 18 Jun 2006 00:54:47 -0000 1.13
+++ java/awt/font/TextLayout.java 14 Jul 2006 23:29:43 -0000
@@ -664,8 +664,9 @@
}
public TextHitInfo hitTestChar (float x, float y, Rectangle2D bounds)
+ throws NotImplementedException
{
- return hitTestChar( x, y, getBounds() );
+ throw new Error ("not implemented");
}
public boolean isLeftToRight ()
Index: java/awt/font/TextMeasurer.java
===================================================================
RCS file: /sources/classpath/classpath/java/awt/font/TextMeasurer.java,v
retrieving revision 1.5
diff -U3 -r1.5 TextMeasurer.java
--- java/awt/font/TextMeasurer.java 18 Jun 2006 02:22:17 -0000 1.5
+++ java/awt/font/TextMeasurer.java 14 Jul 2006 23:29:43 -0000
@@ -128,6 +128,8 @@
*/
public TextLayout getLayout (int start, int limit)
{
+ if( start >= limit )
+ throw new IllegalArgumentException("Start position must be < limit.");
return new TextLayout( totalLayout, start, limit );
}