Question about where to report a particular bug

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Question about where to report a particular bug

Linas
Hello,

I am using a recent (as in installed yesterday from the official update
site) Groovy Eclipse IDE in Eclipse Indigo (3.7) with Groovy 2.0.4.
There is a compilation bug, that manifests in code as follows:

-----> File SourceClass.groovy:

import groovy.transform.TypeChecked;

@TypeChecked
class SourceClass {
        public String SOME_PROP = "someProp";
        public final String SOME_FINAL_PROP = "someFinalProp";
       
        public static SourceClass getInstance() {
                return new SourceClass();
        }
}

----> File BugClass.groovy:

import groovy.transform.TypeChecked;

@TypeChecked
public class BugClass {
        public void showBug() {
                String someVar;

                //fails to compile
                someVar = SourceClass.getInstance().SOME_PROP;
                someVar = SourceClass.getInstance().SOME_FINAL_PROP;
                               
                //compiles fine
                SourceClass srcCls = new SourceClass();
                someVar = srcCls.SOME_PROP;
                someVar = srcCls.SOME_FINAL_PROP;
        }
}

The lines
someVar = SourceClass.getInstance().SOME_PROP;
someVar = SourceClass.getInstance().SOME_FINAL_PROP;

fail to compile with messages
Groovy:[Static type checking] - No such property: SOME_PROP for class:
SourceClass
Groovy:[Static type checking] - No such property: SOME_FINAL_PROP for
class: SourceClass

The bug goes away if @TypeChecked is removed from any of the classes.

The bug does not manifest itself on full rebuild of the sources (Clean &
Build), however it manifests if I make some changes to any of the files,
save and thus trigger a build. Thus, the issue may be related to the IDE
and not to the Groovy compiler.

Where should I report this bug?

Linas.







---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Question about where to report a particular bug

Andrew Eisenberg
Here is our issue tracker:
https://jira.codehaus.org/browse/GRECLIPSE

Be sure to include the following in your bug report:
* What version of Groovy-Eclipse are you running?
* A full stack trace from your error log
* The file(s) where this occurs.


On Thu, Nov 1, 2012 at 11:01 AM, Linas <[hidden email]> wrote:
Hello,

I am using a recent (as in installed yesterday from the official update
site) Groovy Eclipse IDE in Eclipse Indigo (3.7) with Groovy 2.0.4.
There is a compilation bug, that manifests in code as follows:

-----> File SourceClass.groovy:

import groovy.transform.TypeChecked;

@TypeChecked
class SourceClass {
        public String SOME_PROP = "someProp";
        public final String SOME_FINAL_PROP = "someFinalProp";

        public static SourceClass getInstance() {
                return new SourceClass();
        }
}

----> File BugClass.groovy:

import groovy.transform.TypeChecked;

@TypeChecked
public class BugClass {
        public void showBug() {
                String someVar;

                //fails to compile
                someVar = SourceClass.getInstance().SOME_PROP;
                someVar = SourceClass.getInstance().SOME_FINAL_PROP;

                //compiles fine
                SourceClass srcCls = new SourceClass();
                someVar = srcCls.SOME_PROP;
                someVar = srcCls.SOME_FINAL_PROP;
        }
}

The lines
someVar = SourceClass.getInstance().SOME_PROP;
someVar = SourceClass.getInstance().SOME_FINAL_PROP;

fail to compile with messages
Groovy:[Static type checking] - No such property: SOME_PROP for class:
SourceClass
Groovy:[Static type checking] - No such property: SOME_FINAL_PROP for
class: SourceClass

The bug goes away if @TypeChecked is removed from any of the classes.

The bug does not manifest itself on full rebuild of the sources (Clean &
Build), however it manifests if I make some changes to any of the files,
save and thus trigger a build. Thus, the issue may be related to the IDE
and not to the Groovy compiler.

Where should I report this bug?

Linas.







---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Loading...