Skip to content
Permalink
Browse files
8241291: JCK test javax_swing/text/DefaultStyledDocument/ElementSpec/…
…ESpecCtor.html fails

Reviewed-by: prr
  • Loading branch information
prsadhuk committed Mar 21, 2020
1 parent b4a3809 commit 672f3a185703b55bee7b3f060cb31efd09fc9367
Showing with 2 additions and 48 deletions.
  1. +2 −2 src/java.desktop/share/classes/javax/swing/text/DefaultStyledDocument.java
  2. +0 −46 test/jdk/javax/swing/text/html/TestOOMWithLargePreTag.java
@@ -1264,8 +1264,8 @@ public ElementSpec(AttributeSet a, short type, char[] txt,
int offs, int len) {
attr = a;
this.type = type;
this.data = txt == null ? null : Arrays.copyOfRange(txt, offs, offs+len);
this.offs = 0;
this.data = txt == null ? null : Arrays.copyOf(txt, txt.length);
this.offs = offs;
this.len = len;
this.direction = OriginateDirection;
}

This file was deleted.

0 comments on commit 672f3a1

Please sign in to comment.