SpotBugs Bug Detector Report
The following document contains the results of SpotBugs
SpotBugs Version is 4.9.8
Threshold is medium
Effort is default
Summary
| Classes |
Bugs |
Errors |
Missing Classes |
| 17 |
9 |
0 |
0 |
nl.tudelft.simulation.naming.context.JvmContext
| Bug |
Category |
Details |
Line |
Priority |
| Exception thrown in class nl.tudelft.simulation.naming.context.JvmContext at new nl.tudelft.simulation.naming.context.JvmContext(String) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. |
BAD_PRACTICE |
CT_CONSTRUCTOR_THROW |
50 |
Medium |
| Exception thrown in class nl.tudelft.simulation.naming.context.JvmContext at new nl.tudelft.simulation.naming.context.JvmContext(ContextInterface, String) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. |
BAD_PRACTICE |
CT_CONSTRUCTOR_THROW |
60 |
Medium |
| nl.tudelft.simulation.naming.context.JvmContext.bindings() may expose internal representation by returning JvmContext.elements |
MALICIOUS_CODE |
EI_EXPOSE_REP |
378 |
Medium |
nl.tudelft.simulation.naming.context.JvmContextFactory
nl.tudelft.simulation.naming.context.event.ContextEventProducerImpl$PatternListener
| Bug |
Category |
Details |
Line |
Priority |
| new nl.tudelft.simulation.naming.context.event.ContextEventProducerImpl$PatternListener(ContextEventProducerImpl, Pattern, EventListener) may expose internal representation by storing an externally mutable object into ContextEventProducerImpl$PatternListener.this$0 |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
376 |
Medium |
| Should nl.tudelft.simulation.naming.context.event.ContextEventProducerImpl$PatternListener be a _static_ inner class? |
PERFORMANCE |
SIC_INNER_SHOULD_BE_STATIC |
376-397 |
Medium |
nl.tudelft.simulation.naming.context.event.InitialEventContext
| Bug |
Category |
Details |
Line |
Priority |
| Shared primitive variable "gotDefault" in one thread may not yield the value of the most recent write from another thread |
MT_CORRECTNESS |
AT_STALE_THREAD_WRITE_OF_PRIMITIVE |
288 |
Medium |
| Incorrect lazy initialization and update of static field nl.tudelft.simulation.naming.context.event.InitialEventContext.INSTANCE in nl.tudelft.simulation.naming.context.event.InitialEventContext.instantiate(Hashtable, String) |
MT_CORRECTNESS |
LI_LAZY_INIT_UPDATE_STATIC |
135-140 |
High |
| Public static nl.tudelft.simulation.naming.context.event.InitialEventContext.instantiate(Hashtable, String) may expose internal representation by returning InitialEventContext.INSTANCE |
MALICIOUS_CODE |
MS_EXPOSE_REP |
137 |
Medium |