Eclipse JBoss Tools EL Autocomplete not working with Jakarta API

200 views Asked by At

I just did fresh install of Eclipse & JBoss Tools but can't get the EL autocomplete to work. I tracked it down to the use of Jakarta API. If I use the older JavaEE API, the EL autocomplete works as expected, but nothing is displayed when using the Jakarta API in the pom.

Eclipse Version 2022-12 (4.26.0) using vm: JDK 17.0.4.1

JBoss Tools Version 4.26.0 Final (Installed from Marketplace)

Example using Jakarta

<dependency>
    <groupId>jakarta.platform</groupId>
    <artifactId>jakarta.jakartaee-api</artifactId>
    <version>9.1.0</version>
    <scope>provided</scope>
</dependency>  

.

package test;
import java.io.Serializable;
import jakarta.faces.view.ViewScoped;
import jakarta.inject.Named;

@Named
@ViewScoped
public class JakartaNamedObject implements Serializable {
    private static final long serialVersionUID = 1L;
    
    //getters and setter
    
}

enter image description here

Example using Javax

<dependency>
    <groupId>javax</groupId>
    <artifactId>javaee-api</artifactId>
    <version>8.0</version>
    <scope>provided</scope>
</dependency>

.

package test;
import javax.faces.view.ViewScoped;
import javax.inject.Named;
import java.io.Serializable;

@Named
@ViewScoped
public class JavaxNamedObject implements Serializable {
    private static final long serialVersionUID = 1L;
            
    //getters and setter
    
}

enter image description here

I used the Eclipse installer to install Eclipse 2022-12, with a brand new workspace and then Eclipse Marketplace to install JBoss Tools 4.26.

I guess the question is does EL autocomplete work with Jakarta and if so why is it not working in my fresh new setup?

0

There are 0 answers