-
Notifications
You must be signed in to change notification settings - Fork 629
Closed
Description
Assuming JEP 411 is accepted, DoInsideDoPrivileged
will be issuing recommendations to insert API calls which are slated to be officially deprecated and either deleted or made no-ops. Suggest this detector be removed, or disabled by default.
spotbugs/spotbugs/etc/messages.xml
Lines 2386 to 2418 in 43001a9
<BugPattern type="DP_DO_INSIDE_DO_PRIVILEGED"> | |
<ShortDescription>Method invoked that should be only be invoked inside a doPrivileged block</ShortDescription> | |
<LongDescription>Invocation of {2}, which should be invoked from within a doPrivileged block, in {1}</LongDescription> | |
<Details> | |
<![CDATA[ | |
<p> This code invokes a method that requires a security permission check. | |
If this code will be granted security permissions, but might be invoked by code that does not | |
have security permissions, then the invocation needs to occur inside a doPrivileged block.</p> | |
]]> | |
</Details> | |
</BugPattern> | |
<BugPattern type="DP_DO_INSIDE_DO_PRIVILEDGED"> <!-- misspelled for backward compatibility --> | |
<ShortDescription>Method invoked that should be only be invoked inside a doPrivileged block</ShortDescription> | |
<LongDescription>Invocation of {2}, which should be invoked from within a doPrivileged block, in {1}</LongDescription> | |
<Details> | |
<![CDATA[ | |
<p> This code invokes a method that requires a security permission check. | |
If this code will be granted security permissions, but might be invoked by code that does not | |
have security permissions, then the invocation needs to occur inside a doPrivileged block.</p> | |
]]> | |
</Details> | |
</BugPattern> | |
<BugPattern type="DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED"> | |
<ShortDescription>Classloaders should only be created inside doPrivileged block</ShortDescription> | |
<LongDescription>{1} creates a {2} classloader, which should be performed within a doPrivileged block</LongDescription> | |
<Details> | |
<![CDATA[ | |
<p> This code creates a classloader, which needs permission if a security manage is installed. | |
If this code might be invoked by code that does not | |
have security permissions, then the classloader creation needs to occur inside a doPrivileged block.</p> | |
]]> | |
</Details> | |
</BugPattern> |
KengoTODA, victorwss, marschall, anthonyvdotbe, boris-petrov and 6 more
Metadata
Metadata
Assignees
Labels
No labels