Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8124241

PhongMaterial.toString() method produces StackOverflowError

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: javafx
    • Environment:

      8.0-graphics-scrum-b808-x64

      Description

      The following line of code causes StackOverflowError:

      new PhongMaterial().toString();

      Caused by: java.lang.StackOverflowError
      at java.util.Arrays.copyOf(Arrays.java:2367)
      at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:130)
      at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:114)
      at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:415)
      at java.lang.StringBuilder.append(StringBuilder.java:132)
      at javafx.scene.paint.PhongMaterial.toString(PhongMaterial.java:356)
      at java.lang.String.valueOf(String.java:2854)
      at java.lang.StringBuilder.append(StringBuilder.java:128)
      at javafx.beans.property.ObjectPropertyBase.toString(ObjectPropertyBase.java:197)
      at java.lang.String.valueOf(String.java:2854)
      at java.lang.StringBuilder.append(StringBuilder.java:128)
      at javafx.scene.paint.PhongMaterial.toString(PhongMaterial.java:356)
      at java.lang.String.valueOf(String.java:2854)
      at java.lang.StringBuilder.append(StringBuilder.java:128)
      at javafx.beans.property.ObjectPropertyBase.toString(ObjectPropertyBase.java:197)

        Attachments

        1. ShortBug.java
          0.6 kB
          Alexander Kuznetcov

          Issue Links

            Activity

              People

              Assignee:
              kcr Kevin Rushforth
              Reporter:
              mrkam Alexander Kuznetcov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: