JRuby

require throws a LoadError when Jar has a null Manifest

Details

  • Testcase included:
    yes
  • Patch Submitted:
    Yes
  • Number of attachments :
    3

Description

Require throws a LoadError when trying to load aspectjrt-1.5.2.jar from the maven repository. I investigated the root cause and for some reason JarInputStream.getManifest was returning null for this Jar, causing an NPE. The attached patch inserts a null check for Jars which return a null Manifest.

  1. null_manifest.patch
    20/Jul/07 9:27 AM
    2 kB
    Cliff Moon
  2. test.rb
    20/Jul/07 9:27 AM
    0.3 kB
    Cliff Moon

Activity

Hide
Charles Oliver Nutter added a comment -

Fixed on trunk and 1.1 branch

Show
Charles Oliver Nutter added a comment - Fixed on trunk and 1.1 branch

People

Vote (1)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: