groovy

Sql.java contains assertion which is always false

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 1.6.5
  • Fix Version/s: 1.7-beta-2, 1.6.6
  • Component/s: SQL processing
  • Labels:
    None
  • Number of attachments :
    0

Description

Sql.java, line 2255 contains the following assertion, which is always false:

assert (null != statement);

This pretty much renders class Sql unusable if assertions are enabled, which for example is the case when running tests with Maven.

Activity

Hide
Peter Niederwieser added a comment -

I'm pretty sure that my fix is in line with the author's original intentions. To facilitate the detection of failing Java assertions, I've enabled assertions for all unit tests run by the Ant build.

Show
Peter Niederwieser added a comment - I'm pretty sure that my fix is in line with the author's original intentions. To facilitate the detection of failing Java assertions, I've enabled assertions for all unit tests run by the Ant build.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: