[prev in list] [next in list] [prev in thread] [next in thread] 

List:       groovy-scm
Subject:    [groovy-scm]  [18173] branches/GROOVY_1_6_X/src/test/groovy/bugs: GROOVY-3863
From:       roshandawrani () codehaus ! org
Date:       2009-10-31 17:38:07
Message-ID: 20091031173807.9FADC45811B () codehaus01 ! managed ! contegix ! com
[Download RAW message or body]

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><style type="text/css"><!--
#msg DL { border : 1px #006 solid; background-color : #369; padding : 6px; color : \
#fff; } #msg DT { float : left; width : 6em; font-weight : bold; }
#msg DL, #msg DT, #msg UL, #msg LI { font-family : arial,helvetica,sans-serif; \
font-size : 10pt;  } h3 { font-family : arial,helvetica,sans-serif; font-size : 10pt; \
font-weight : bold; } #msg PRE { overflow : auto; white-space : normal; \
background-color : #ffc; border : 1px #fc0 solid; padding : 6px; } #msg UL, PRE, \
.diff { overflow : auto; } #patch h4 { font-family : arial,helvetica,sans-serif; \
font-size : 10pt; } #patch h4 { padding: 8px; background : #369; color : #fff; margin \
: 0; } #patch .propset h4, #patch .binary h4 {margin: 0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {background:#eeeeee;padding: 0 0 10px 0;}
#patch .propset .diff, #patch .binary .diff  {padding: 10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, \
#patch .copfile {border:1px solid #ccc;margin:10px 0;} #patch .add \
{background:#ddffdd;} #patch .rem {background:#ffdddd;}
#patch .lines, .info {color:#888888;background:#ffffff;}
.diff { width : 100%; }
#msg DL { border : 1px #006 solid; background-color : #369; padding : 6px; color : \
#fff; } #msg DT { float : left; width : 6em; font-weight : bold; }
#msg DL, #msg DT, #msg UL, #msg LI { font-family : arial,helvetica,sans-serif; \
font-size : 10pt;  } h3 { font-family : arial,helvetica,sans-serif; font-size : 10pt; \
font-weight : bold; } #msg PRE { overflow : auto; white-space : normal; \
background-color : #ffc; border : 1px #fc0 solid; padding : 6px; } #msg UL, PRE, \
.diff { overflow : auto; } #patch h4 { font-family : arial,helvetica,sans-serif; \
font-size : 10pt; } #patch h4 { padding: 8px; background : #369; color : #fff; margin \
: 0; } #patch .propset h4, #patch .binary h4 {margin: 0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {background:#eeeeee;padding: 0 0 10px 0;}
#patch .propset .diff, #patch .binary .diff  {padding: 10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, \
#patch .copfile {border:1px solid #ccc;margin:10px 0;} #patch .add \
{background:#ddffdd;} #patch .rem {background:#ffdddd;}
#patch .lines, .info {color:#888888;background:#ffffff;}
.diff { width : 100%; }
--></style>
<title> [18173] branches/GROOVY_1_6_X/src/test/groovy/bugs: GROOVY-3863</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a \
href="http://fisheye.codehaus.org/changelog/groovy/?cs=18173">18173</a></dd> \
<dt>Author</dt> <dd>roshandawrani</dd> <dt>Date</dt> <dd>2009-10-31 12:38:07 -0500 \
(Sat, 31 Oct 2009)</dd> </dl>

<h3>Log Message</h3>
<pre><a href="http://jira.codehaus.org/secure/ViewIssue.jspa?key=GROOVY-3863">GROOVY-3863</a>
 this.class failed with ClassCastException in static methods returning void. Fixed \
it.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#branchesGROOVY_1_6_XsrcmainorgcodehausgroovyclassgenVerifierjava">branches/GROOVY_1_6_X/src/main/org/codehaus/groovy/classgen/Verifier.java</a></li>
 </ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#branchesGROOVY_1_6_XsrctestgroovybugsGroovy3863Buggroovy">branches/GROOVY_1_6_X/src/test/groovy/bugs/Groovy3863Bug.groovy</a></li>
 </ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="branchesGROOVY_1_6_XsrcmainorgcodehausgroovyclassgenVerifierjava"></a>
<div class="modfile"><h4>Modified: \
branches/GROOVY_1_6_X/src/main/org/codehaus/groovy/classgen/Verifier.java (18172 => \
18173)</h4> <pre class="diff">
<span class="info">--- \
branches/GROOVY_1_6_X/src/main/org/codehaus/groovy/classgen/Verifier.java	2009-10-31 \
                17:23:25 UTC (rev 18172)
+++ branches/GROOVY_1_6_X/src/main/org/codehaus/groovy/classgen/Verifier.java	2009-10-31 \
17:38:07 UTC (rev 18173) </span><span class="lines">@@ -451,6 +451,7 @@
</span><span class="cx">         else if (!node.isAbstract()) {
             if (!(statement instanceof BytecodeSequence)) {
                 BlockStatement newBlock = new BlockStatement();
</span><span class="add">+                \
newBlock.setVariableScope(node.getVariableScope()); </span><span class="cx">          \
                if (statement instanceof BlockStatement) {
                     \
newBlock.addStatements(((BlockStatement)statement).getStatements());  } else {
</span></pre></div>
<a id="branchesGROOVY_1_6_XsrctestgroovybugsGroovy3863Buggroovy"></a>
<div class="addfile"><h4>Added: \
branches/GROOVY_1_6_X/src/test/groovy/bugs/Groovy3863Bug.groovy (0 => 18173)</h4> \
<pre class="diff"> <span class="info">--- \
branches/GROOVY_1_6_X/src/test/groovy/bugs/Groovy3863Bug.groovy	                      \
                (rev 0)
+++ branches/GROOVY_1_6_X/src/test/groovy/bugs/Groovy3863Bug.groovy	2009-10-31 \
17:38:07 UTC (rev 18173) </span><span class="lines">@@ -0,0 +1,14 @@
</span><span class="add">+package groovy.bugs
+
+class Groovy3863Bug extends GroovyTestCase {
+    void testClassNameAccessInMainMethod() {
+        assertScript &quot;&quot;&quot;
+            class Foo3863 {
+                static main(args) {
+                    println this.name
+                    assert this.name.contains(&#39;Foo3863&#39;) == true
+                }
+            }
+        &quot;&quot;&quot;
+    }
+}
</span><span class="cx">\ No newline at end of file
</span>
</pre>
</div>
</div>

</body>
</html>

<hr/>
<p>
To unsubscribe from this list please visit:
</p>
<p>
    <a href="http://xircles.codehaus.org/manage_email">http://xircles.codehaus.org/manage_email</a>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic