Maven 1.x JDepend Plugin

Exception in jsl when there are no cyclic dependencies.

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.5
  • Fix Version/s: 1.5.1
  • Component/s: None
  • Labels:
    None
  • Environment:
    maven-1.1-beta-1, maven-jdepend-plugin-1.5
  • Number of attachments :
    0

Description

When there are no cyclic dependencies, jdepend-raw-report.xml contains empty Cycles tag, but jdepend.jsl tries to select Cycles/Package (null) and get size of the result. It causes exception in jexl parser. So I propose to add this check:

jdepend.jsl:
260: <j:when test="${packages == null || size(packages) == 0}">

now it looks like:
260: <j:when test="${size(packages) == 0}">

Activity

Hide
Carlos Sanchez added a comment -

Reopen to assign fix version

Show
Carlos Sanchez added a comment - Reopen to assign fix version

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
5m
Original Estimate - 5 minutes
Remaining:
5m
Remaining Estimate - 5 minutes
Logged:
Not Specified
Time Spent - Not Specified