-
Bug
-
Resolution: Unresolved
-
P3
-
None
-
1.2.0
TextLayout should deal more gracefully with zero length strings. Currently the exception listed below is the one that is thrown.
new TextLayout("", f, new FontRenderContext(null, false, false));
> Exception in thread "main" java.lang.IllegalArgumentException: Zero length
> string passed to TextLayout constructor.
> at java.lang.Throwable.<init>(Compiled Code)
> at java.lang.Exception.<init>(Compiled Code)
> at java.lang.RuntimeException.<init>(Compiled Code)
> at java.lang.IllegalArgumentException.<init>(Compiled Code)
> at java.awt.font.TextLayout.<init>(Compiled Code)
> at test.main(Compiled Code)
new TextLayout("", f, new FontRenderContext(null, false, false));
> Exception in thread "main" java.lang.IllegalArgumentException: Zero length
> string passed to TextLayout constructor.
> at java.lang.Throwable.<init>(Compiled Code)
> at java.lang.Exception.<init>(Compiled Code)
> at java.lang.RuntimeException.<init>(Compiled Code)
> at java.lang.IllegalArgumentException.<init>(Compiled Code)
> at java.awt.font.TextLayout.<init>(Compiled Code)
> at test.main(Compiled Code)
- duplicates
-
JDK-4131054 java.lang.IllegalArgumentException: Zero length string... - engr bld.
- Closed
- relates to
-
JDK-4873198 Setting the font size to a larger value throws a IllegalArgumentException
- Resolved