Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jersey-dev] [External] : Deprecated class

I loaded  code examples in netbeans ide and it had a strike through line meaning it is deprecated.


The netbeans is the best indicator because  deprecated code is programmed into the IDE.

Also it is indicated here aswell.

https://stackoverflow.com/questions/38040947/the-type-managedbean-is-deprecated

On Mon, 29 Mar 2021, 10:35 Jan Supol, <jan.supol@xxxxxxxxxx> wrote:
Hi, 
Why do you think jakarta.annotation.ManagedBean [1] has been deprecated? 
Thanks,
Jan

Jakarta Annotations. Contribute to eclipse-ee4j/common-annotations-api development by creating an account on GitHub.



From: jersey-dev <jersey-dev-bounces@xxxxxxxxxxx> on behalf of Som Lima <somplasticllc@xxxxxxxxx>
Sent: Sunday, March 28, 2021 11:29 PM
To: jersey developer discussions <jersey-dev@xxxxxxxxxxx>
Subject: [External] : [jersey-dev] Deprecated class
 
Hi,

I believe the following code in the jakarta jersey reference examples has been deprecated and should not be part of jakarta.
If that is the case You may to wish to look into it.
I have identified the files in question using the *.nix scripting language (A flexible therefore a powerful tool).

 
import jakarta.annotation.ManagedBean;
@ManagedBean

$ grep  -RiIl '@ManagedBean'
managed-beans-webapp/src/main/java/org/glassfish/jersey/examples/managedbeans/resources/ManagedBeanSingletonResource.java
managed-beans-webapp/src/main/java/org/glassfish/jersey/examples/managedbeans/resources/ManagedBeanExceptionMapper.java
managed-beans-webapp/src/main/java/org/glassfish/jersey/examples/managedbeans/resources/ManagedBeanPerRequestResource.java
managed-beans-webapp/README.MD
helloworld-weld/src/main/java/org/glassfish/jersey/examples/helloworld/App.java
cdi-webapp/src/main/java/org/glassfish/jersey/examples/cdi/resources/MySingletonResource.java
cdi-webapp/src/main/java/org/glassfish/jersey/examples/cdi/resources/MyOtherResource.java
cdi-webapp/src/main/java/org/glassfish/jersey/examples/cdi/resources/HelloWorldResource.java
cdi-webapp/src/main/java/org/glassfish/jersey/examples/cdi/resources/EchoParamFieldResource.java
cdi-webapp/src/main/java/org/glassfish/jersey/examples/cdi/resources/EchoParamResource.java
cdi-webapp/src/main/java/org/glassfish/jersey/examples/cdi/resources/EchoParamConstructorResource.java


Quick grep explanation:
    -R - recursive search
    -i - case-insensitive
    -I - skip binary files
    -l - print a simple list as output.
_______________________________________________
jersey-dev mailing list
jersey-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jersey-dev

Back to the top