Skip to content
Advertisement

Tag: static-analysis

How exactly can someone without source code access exploit a non-final class that has a constructor which invokes overridable functions?

I’m trying to understand how exactly can someone that doesn’t already have access to the source code exploit a non-final class that has a constructor which invokes overridable functions (functions not marked final). This question comes from the fact that after scanning my source code with a Source Code Analyzer (Fortify), it showed a few findings about “Code Correctness: Constructor

Is this IntelliJ inspection warning a false positive?

I’m looking at ProducerPerformance.java from https://github.com/apache/kafka. Looking at this part of the file: There is an inspection saying that “Condition i < payload.length is always false.” I don’t see how it could always be false. recordSize is an Integer coming from a command-line parameter. Is there something I’m not seeing here? Answer This warning happened with IntelliJ IDEA 2020.*. The

Advertisement