Sorry for posting to the dev list rather than opening a jira, but my codehaus 
credentials seem to be messed up somehow.

I tried running the 1.9 plugin on jdk 6 and got an exception like this:

        at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
        ... 20 more
Caused by: java.lang.NoSuchMethodError: 
java.nio.CharBuffer.subSequence(II)Ljava/nio/CharBuffer;
        at 
org.codehaus.mojo.animal_sniffer.SignatureChecker.toSourceType(SignatureChecker.java:509)
        at 
org.codehaus.mojo.animal_sniffer.SignatureChecker.toSourceType(SignatureChecker.java:516)
        at 
org.codehaus.mojo.animal_sniffer.SignatureChecker.toSourceForm(SignatureChecker.java:471)
…

I think this is due to a change between java 6 and 7, subSequence is no longer 
abstract:

package java.nio
[−] CharBuffer (2) 
Change  Effect
1       Abstract method CharBuffer.subSequence ( int p1, int p2 )became 
non-abstract.   Some methods in this class may change behavior.
2       Method CharSequence.subSequence ( int p1, int p2 ) has been overridden 
by CharBuffer.subSequence ( int p1, int p2 )     Method CharBuffer.subSequence 
( int p1, int p2 ) will be called instead of CharSequence.subSequence ( int p1, 
int p2 ) in a client program.


(from 
http://upstream-tracker.org/java/compat_reports/jdk/1.6.0.23_to_1.7.0.09dec2010/bin_compat_report.html#Type_Problems_High)

This problem goes away if I compile trunk with jdk 6.

I've also been trying to use the ignores configuration property to exclude a 
single class from analysis but I can't figure out any way to use it to 
configure anything at all.

thanks
david jencks

Reply via email to