dev@glassfish.java.net

[_at_V] Question on Bug 3625 on Verifier

From: Seema Richard <Seema.Richard_at_ust-global.com>
Date: Mon, 26 May 2008 08:58:23 +0530

Sahoo,

 

I had a query regarding the bug about detecting non-standard annotations
in code. This is the example that you provided for the bug.

 

@WebService

public class MyServletEndpoint {

    @javax.ejb.TransactionAttribute(REQUIRES_NEW) // incorrect use

    public void registerUser(String username, String encodedPW) {

         // ...

    }

}

 

However, since a servlet is allowed to access EJB client API, classes in
javax.ejb package are in the classpath for a web module. Hence they
would not be considered as non-standard annotations. Please comment on
this. Also, please change the status of the bug from 'Unconfirmed' to
'New'.

 

Thanks,

Seema