ctolkmit / checker-framework

Automatically exported from code.google.com/p/checker-framework
0 stars 0 forks source link

java.lang.AssertionError: PolyCollector: mismatched type kinds #386

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Caused by this:

    import java.io.File;
    import static com.google.common.base.Preconditions.checkNotNull;

    class Test {
        public void test() {
            File file = null;
            checkNotNull(file).getName();
        }
    }

See full runnable repro at 
https://github.com/trask/checker-quiet-failure-repro-2

Besides the underlying error (java.lang.AssertionError: PolyCollector: 
mismatched type kinds), this is another example of an error that fails the 
maven build without any messages (which is quite confusing).  Is it possible to 
report these errors in some way that maven compiler plugin will display?

Thanks,
Trask

Original issue reported on code.google.com by trask.st...@gmail.com on 24 Dec 2014 at 4:09

GoogleCodeExporter commented 9 years ago
Hi Trask, Thanks for the report! This is currently fixed in our private 
type-variable repository which we plan to merge within the next couple of 
releases.

As for getting more information out of maven, try removing 
<verbose>true</verbose> from the maven-compiler-plugin configuration. It seems 
that when verbose is true, maven doesn't try to parse the exception error 
messages. I'll be updating the manual to reflect that change.

Original comment by mcart...@cs.washington.edu on 22 Jan 2015 at 11:17

GoogleCodeExporter commented 9 years ago

Original comment by mcart...@cs.washington.edu on 23 Jan 2015 at 6:59

GoogleCodeExporter commented 9 years ago

Original comment by Jonathan...@gmail.com on 8 Apr 2015 at 9:16

GoogleCodeExporter commented 9 years ago

Original comment by jtha...@cs.washington.edu on 18 Apr 2015 at 6:42