"Source not found" when clicking stacktrace

Normally, clicking on a line in the stack opens the source file on the violation line. With Eclipse-oxygen (R with java9 support) and java9 (u175), it shows the "Source not found" dialog if the source is somewhere inside java modules. The source was found, as expected, when navigating (on F3) in the editor.

What is there / where is wrong and how to fix it?

The following is a simple two-line example that does not appear showing the stack:

Exception in thread "main" java.lang.IndexOutOfBoundsException: Index 5 out-of-bounds for length 0
    at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
    at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
    at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
    at java.base/java.util.Objects.checkIndex(Objects.java:372)
    at java.base/java.util.ArrayList.set(ArrayList.java:453)
    at dummy.PlainStacktrace.main(PlainStacktrace.java:10)

Two-line:

import java.util.ArrayList;

public class PlainStacktrace {

    public static void main(String[] args) {
        ArrayList list = new ArrayList();
        list.set(5, "error");
    }

}
+4
source share
1 answer

This was bug 518829 , which should be resolved in the latest builds.

: , Java 9 Eclipse , JDK, Eclipse.

+2

Source: https://habr.com/ru/post/1682656/


All Articles