Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.0alpha
-
Fix Version/s: 2.0.1Release
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
public class VoidReturnTestCase {
void returnSomething()
{ return true }}
This causes an "Exception occurred during problem detection" message to appear when the file is saved and every time you hover over the first line of the method.
Additionally a orange
marker appears at the top of the file on the first line which contains a useful message but the message marker should appear in the gutter of the first line of the method and should be highlighted better.
I'm not sure if the correct marker should be a round red X instead of orange warning triangle.
Activity
Andrew Eisenberg
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Affects Version/s | 2.0.0alpha [ 15561 ] | |
| Affects Version/s | 2.0.0m1 [ 15311 ] |
Andrew Eisenberg
made changes -
| Description |
public class VoidReturnTestCase { void returnSomething() { return true } } This causes an "Exception occurred during problem detection" message to appear when the file is saved and every time you hover over the first line of the method. Additionally a orange (!) marker appears at the top of the file on the first line which contains a useful message but the message marker should appear in the gutter of the first line of the method and should be highlighted better. I'm not sure if the correct marker should be a round red X instead of orange warning triangle. |
public class VoidReturnTestCase { void returnSomething() { return true } } This causes an "Exception occurred during problem detection" message to appear when the file is saved and every time you hover over the first line of the method. Additionally a orange (!) marker appears at the top of the file on the first line which contains a useful message but the message marker should appear in the gutter of the first line of the method and should be highlighted better. I'm not sure if the correct marker should be a round red X instead of orange warning triangle. |
| Assignee | James E. Ervin [ jervin ] | Andy Clement [ aclement ] |
Andy Clement
made changes -
| Summary | using return statements in methods declared with a void return value causes "exception occurred during problem dection" | [groovycbug] using return statements in methods declared with a void return value causes "exception occurred during problem dection" |
| Fix Version/s | 2.0.0m2 [ 15562 ] | |
| Fix Version/s | 2.0.0m1 [ 15311 ] |
Andy Clement
made changes -
| Fix Version/s | 2.0.0RC1 [ 15956 ] | |
| Fix Version/s | 2.0.0m2 [ 15562 ] |
Andrew Eisenberg
made changes -
| Fix Version/s | 2.0.1M1 [ 16072 ] | |
| Fix Version/s | 2.0.0RC1 [ 15956 ] |
Andrew Eisenberg
made changes -
| Fix Version/s | 2.0.1Release [ 16074 ] | |
| Fix Version/s | 2.0.1M1 [ 16072 ] |
Andy Clement
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
Actually thinking about it, maybe the message should appear on the line that contains the return statement? I think I'll leave that to the groovy language experts to decide though.