You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into this attempting to hover (although the stacktrace implies completion was involved) in a file with some token that could not be resolved. I had JavaSE-21 set as my target environment but not sure if that's required. I wasn't able to reproduce, nor did it appear to be harmful but it happened pretty frequently.
!ENTRY org.eclipse.jdt.core.manipulation 4 10001 2024-02-05 13:54:13.629
!MESSAGE Internal Error
!STACK 1
Java Model Exception: Error in Java Model (code 969): DecimalFormat.class [in java.text [in <module:java.base>]] does not exist
at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException(JavaElement.java:562)
at org.eclipse.jdt.internal.core.ClassFile.getBinaryTypeInfo(ClassFile.java:202)
at org.eclipse.jdt.internal.core.ClassFile.buildStructure(ClassFile.java:91)
at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:265)
at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:585)
at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:308)
at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:294)
at org.eclipse.jdt.internal.core.BinaryType.getClassFileInfo(BinaryType.java:232)
at org.eclipse.jdt.internal.core.BinaryType.getChildren(BinaryType.java:195)
at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType(JavaElement.java:263)
at org.eclipse.jdt.internal.core.BinaryType.getMethods(BinaryType.java:494)
at org.eclipse.jdt.internal.ui.viewsupport.CoreJavaElementLinks.parseURI(CoreJavaElementLinks.java:238)
at org.eclipse.jdt.ls.core.internal.javadoc.JavadocContentAccess2$JdtLsJavadocAccessImpl.createLinkURI(JavadocContentAccess2.java:310)
at org.eclipse.jdt.core.manipulation.internal.javadoc.CoreJavadocAccessImpl.handleLink(CoreJavadocAccessImpl.java:1477)
at org.eclipse.jdt.core.manipulation.internal.javadoc.CoreJavadocAccessImpl.handleInlineTagElement(CoreJavadocAccessImpl.java:935)
at org.eclipse.jdt.core.manipulation.internal.javadoc.CoreJavadocAccessImpl.handleContentElements(CoreJavadocAccessImpl.java:775)
at org.eclipse.jdt.core.manipulation.internal.javadoc.CoreJavadocAccessImpl.handleContentElements(CoreJavadocAccessImpl.java:733)
at org.eclipse.jdt.core.manipulation.internal.javadoc.CoreJavadocAccessImpl.elementToHTML(CoreJavadocAccessImpl.java:352)
at org.eclipse.jdt.core.manipulation.internal.javadoc.CoreJavadocAccessImpl.toHTML(CoreJavadocAccessImpl.java:162)
at org.eclipse.jdt.core.manipulation.internal.javadoc.CoreJavadocAccess.javadoc2HTML(CoreJavadocAccess.java:436)
at org.eclipse.jdt.core.manipulation.internal.javadoc.CoreJavadocAccess.getHTMLContentFromSource(CoreJavadocAccess.java:369)
at org.eclipse.jdt.core.manipulation.internal.javadoc.CoreJavadocAccess.getHTMLContent(CoreJavadocAccess.java:230)
at org.eclipse.jdt.ls.core.internal.javadoc.JavadocContentAccess2.getMarkdownContentReader(JavadocContentAccess2.java:74)
at org.eclipse.jdt.ls.core.internal.handlers.CompletionResolveHandler.lambda$0(CompletionResolveHandler.java:265)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
!SUBENTRY 1 org.eclipse.jdt.core 4 969 2024-02-05 13:54:13.629
!MESSAGE DecimalFormat.class [in java.text [in <module:java.base>]] does not exist
The text was updated successfully, but these errors were encountered:
CC'ing @robstryker@fbricon as requested. Here's the snippet behaviour I was referring to :
Note : This is only a problem on a Java 21 EE (in fact probably Java 18+ since that's when javadoc snippets were introduced). On Java 17, it looks just fine.
I ran into this attempting to hover (although the stacktrace implies completion was involved) in a file with some token that could not be resolved. I had JavaSE-21 set as my target environment but not sure if that's required. I wasn't able to reproduce, nor did it appear to be harmful but it happened pretty frequently.
The text was updated successfully, but these errors were encountered: