[ 
https://issues.apache.org/jira/browse/NETBEANS-4159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated NETBEANS-4159:
-------------------------------------
    Labels: pull-request-available  (was: )

> Internal hint engine for EE feature resolves class version to JDK6
> ------------------------------------------------------------------
>
>                 Key: NETBEANS-4159
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4159
>             Project: NetBeans
>          Issue Type: Bug
>          Components: editor - Hints & Annotations
>    Affects Versions: 12.0
>         Environment: Product Version: Apache NetBeans IDE DEV (Build 
> dev-1718236e226adfd9aa5a48d9be74b2a95a63b050)
> Java: 14; OpenJDK 64-Bit Server VM 14+36
> Runtime: OpenJDK Runtime Environment 14+36
> System: Windows 10 version 10.0 running on amd64; Cp1252; de_DE (nb)
>            Reporter: Benjamin Graf
>            Priority: Major
>              Labels: pull-request-available
>
> Simple test class using JDK14 feature (e.g. record) always throws Exception 
> while resolving hints.
> {noformat}
> javax.lang.model.element.UnknownElementException: Unknown element: 
> "javaapplication1.JavaApplication1.Point"
>       at 
> java.compiler@14/javax.lang.model.util.AbstractElementVisitor6.visitUnknown(AbstractElementVisitor6.java:126)
>       at 
> java.compiler@14/javax.lang.model.util.ElementKindVisitor6.visitTypeAsRecord(ElementKindVisitor6.java:240)
>       at 
> java.compiler@14/javax.lang.model.util.ElementKindVisitor6.visitType(ElementKindVisitor6.java:160)
>       at 
> jdk.compiler/com.sun.tools.javac.code.Symbol$ClassSymbol.accept(Symbol.java:1522)
>       at 
> org.netbeans.modules.websvc.editor.hints.common.RulesEngine.visitTypeAsClass(RulesEngine.java:61)
>       at 
> org.netbeans.modules.websvc.editor.hints.common.RulesEngine.visitTypeAsClass(RulesEngine.java:37)
>       at 
> java.compiler@14/javax.lang.model.util.ElementKindVisitor6.visitType(ElementKindVisitor6.java:151)
>       at 
> jdk.compiler/com.sun.tools.javac.code.Symbol$ClassSymbol.accept(Symbol.java:1522)
>       at 
> org.netbeans.modules.websvc.editor.hints.WebServicesHintsProvider.run(WebServicesHintsProvider.java:112)
>       at 
> org.netbeans.modules.websvc.editor.hints.WebServicesHintsProvider$ProblemFinderCompInfo.run(WebServicesHintsProvider.java:187)
> [catch] at 
> org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper.run(JavaSourceAccessor.java:273)
>       at 
> org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:561)
>       at 
> org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:786)
>       at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)
>       at 
> org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
>       at 
> org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
>       at 
> java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
>       at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
>       at 
> org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
>       at 
> org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
>       at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
>       at 
> org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
> {noformat}
> Reproduce:
> 1. Create Java Application (tested with and and maven based project)
> 2. Write some simple JDK14 record class
> 3. Activate EE feature if not activated yet



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to