gradle / gradle-jdocbook

A Gradle plugin for jdocbook
13 stars 14 forks source link

Fix for Issue #12 #13

Closed jeffdc closed 11 years ago

jeffdc commented 12 years ago

Fixed crash where wrong ctor was sometimes called. Appears to be platform and JVM dependent. Crash was consistent on Linux with Java7. The problem is that the FormatOption class has 2 single param ctors. Line 92 of Book.groovy calls the modifed method with null for the name param. This then in turn calls new FormatOption(null), which on Linux/Java7 calls the FormatOption(FormatOption parent) ctor not the FormatOption(String name) ctor as apparently happens on other platforms and on Linux with Java6.

sebersole commented 12 years ago

I think you mean Issue #12...

jeffdc commented 12 years ago

Yes indeed. Edited.