java.lang.StackOverflowError

Oracle Community | 843793 | 2 decades ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Singleton instatiation

    Oracle Community | 2 decades ago | 843793
    java.lang.StackOverflowError

    Root Cause Analysis

    1. java.lang.StackOverflowError

      No message provided

      at ClassB.<init>()
    2. Unknown
      ClassA.methodA
      1. ClassB.<init>(StaticTest.java:21)
      2. ClassB.getInstance(StaticTest.java:19)
      3. ClassA.methodA(StaticTest.java:9)
      4. ClassB.methodB(StaticTest.java:23)
      5. ClassA.methodA(StaticTest.java:9)
      6. ClassB.methodB(StaticTest.java:23)
      7. ClassA.methodA(StaticTest.java:9)
      8. ClassB.methodB(StaticTest.java:23)
      9. ClassA.methodA(StaticTest.java:9)
      10. ClassB.methodB(StaticTest.java:23)
      11. ClassA.methodA(StaticTest.java:9)
      11 frames