eclipse-jdt / eclipse.jdt.core

Eclipse Public License 2.0
157 stars 124 forks source link

JEP 413 Javadoc External Code Snippets do not work for JARs #2814

Open ttho opened 1 month ago

ttho commented 1 month ago

STR

Given

  1. A Java (18+) project with the following classes:
    
    package test;

/**

package test;

public class SomeClass {
    public static void main(String[] args) {

    }
}
public class SomeClassInDefaultPackage {

}

in their corresponding directories (see attached file SnippetTest.zip ). The JavaDoc view for Main.java displays:

grafik

  1. Export the project to a JAR, sources and binaries together, and

  2. Create another project and reference the exported JAR

  3. Navigate to the JAR in the package explorer under "Referenced Libraries"

  4. Navigate to test/Main.class and click on it

  5. Show the JavaDoc view

Expected

See image above.

Actual

grafik

ttho commented 1 month ago

This may be related to https://bugs.eclipse.org/bugs/show_bug.cgi?id=464439