Clojure

Test for error message fails in IBM JDK

Details

  • Patch:
    Code and Test
  • Approval:
    Ok

Description

A test for reify looks for an error message matching a specific regex, which fails on IBM JDK:

FAIL in (reify-test) (
you can't define a method twice
expected: (fails-with-cause? java.lang.ClassFormatError #"^(Repetitive|Duplicate) method name" (eval (quote (reify java.util.List (size [_] 10) java.util.Collection (size [_] 20)))))
actual: #<CompilerException java.lang.ClassFormatError: (clojure/test_clojure$eval17188$reify__17189) duplicate method at offset=1052, compiling/var/lib/hudson/jobs/ibm-jdk-clojure-build/workspace/src/script/run_tests.clj:257)>

Activity

Hide
Stuart Sierra added a comment -

Patch 0728-reify-exceptions-1.patch.gz changes the test to not check for specific types or messages on the exceptions.

Show
Stuart Sierra added a comment - Patch 0728-reify-exceptions-1.patch.gz changes the test to not check for specific types or messages on the exceptions.
Hide
Stuart Sierra added a comment -

This is the only thing holding us back from a successful build on IBM JDK.

Show
Stuart Sierra added a comment - This is the only thing holding us back from a successful build on IBM JDK.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: