ajwang / groovypptest

Automatically exported from code.google.com/p/groovypptest
0 stars 0 forks source link

Got An Error Descibed "Groovy:Internal Error: java.lang.NullPointerException" #381

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The whole code is below, i post two images, the first one of which shows the 
error and the second one is the explorer tree of the simple project. 

package test

import groovyjarjarcommonscli.GnuParser;
import groovyjarjarcommonscli.Options;

@Typed(TypePolicy.STATIC) // or @Typed(TypePolicy.MIXED)
class Test {

    String something;

    // @Override
    void tab(String[] args) {
        GnuParser parser = new GnuParser()

        parser.parse(new Options(), args)
    }
}

Original issue reported on code.google.com by lifei.job@gmail.com on 24 May 2011 at 4:04

Attachments:

GoogleCodeExporter commented 8 years ago
It's not a Groovy++ issue, but an issue with the IDE that you are using (i.e., 
issue with Groovy++ support in that IDE). Outside any IDE, your code works 
fine. 

If it is Groovy-Eclipse that you used, you can follow the progress of Groovy++ 
support in it here: http://jira.codehaus.org/browse/GRECLIPSE-826

Original comment by roshanda...@gmail.com on 24 May 2011 at 4:18

GoogleCodeExporter commented 8 years ago
Click the "Project-Clean" and when rebuild the project, the problem disappeared.

Original comment by wangzaix...@gmail.com on 7 Jun 2011 at 3:33

GoogleCodeExporter commented 8 years ago

Original comment by alex.tka...@gmail.com on 3 Jul 2011 at 7:14