Bug 567294 - Check for sign of bitwise operation involving 0x7ffffffc

(2147483644) in new
org.eclipse.pde.api.tools.internal.builder.ReferenceExtractor(IApiType,
Set, int)

This method compares a bitwise expression such as ((val & CONSTANT) > 0)
where CONSTANT is the negative number. Using bit arithmetic and then
comparing with the greater than operator can lead to unexpected results.
This comparison is unlikely to work as expected. The good practice is to
use '!= 0' instead of '> 0'.

Rank: Scary (5), confidence: High
Pattern: BIT_SIGNED_CHECK_HIGH_BIT
Type: BIT, Category: CORRECTNESS (Correctness)


Change-Id: I137fdf5298d6ef23cb3c3128042aed11fd6cad89
Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
1 file changed
tree: 5140342fbc29d111b93a4ad716feed8e23c69f3e
  1. .mvn/
  2. apitools/
  3. ds/
  4. features/
  5. releng/
  6. tests-pom/
  7. ua/
  8. ui/
  9. .gitignore
  10. CONTRIBUTING
  11. LICENSE
  12. NOTICE
  13. pom.xml
  14. README.md
README.md

Contributing to PDE - Plug-in development Environment

Thanks for your interest in this project.

Project description:

The PDE project the Eclipse tooling to develop plug-ins and OSGI bundles.
Website: https://www.eclipse.org/pde/

How to contribute:

Contributions to PDE are most welcome. There are many ways to contribute, from entering high quality bug reports, to contributing code or documentation changes. For a complete guide, see the [How to Contribute] 1 page on the team wiki.

Developer resources:

Information regarding source code management, builds, coding standards, and more.

Contributor License Agreement:

Before your contribution can be accepted by the project, you need to create and electronically sign the Eclipse Foundation Contributor License Agreement (CLA).

Search for bugs:

This project uses Bugzilla to track ongoing development and issues.

Create a new bug:

Be sure to search for existing bugs before you create another one. Remember that contributions are always welcome!

Contact:

Contact the project developers via the project's “dev” list.

License

Eclipse Public License (EPL) v1.0