danielsun1106 commented on a change in pull request #853: GROOVY-7812: Static 
inner classes cannot be accessed from other files…
URL: https://github.com/apache/groovy/pull/853#discussion_r247377408
 
 

 ##########
 File path: src/test/groovy/bugs/Groovy7812Bug.groovy
 ##########
 @@ -19,12 +19,34 @@
 package groovy.bugs
 
 import org.codehaus.groovy.tools.GroovyStarter
-import org.junit.Ignore
 
-@Ignore('To be fixed')
 class Groovy7812Bug extends GroovyTestCase {
-    void test() {
+    void testResolvingOuterNestedClass() {
         def mainScriptPath = new 
File(this.getClass().getResource('/groovy/bugs/groovy7812/Main.groovy').toURI()).absolutePath
-        new GroovyStarter().main(["--main", "groovy.ui.GroovyMain", 
mainScriptPath] as String[])
+        runScript(mainScriptPath)
+    }
+
+//   Even if try to catch `Throwable`, the expected error is thrown all the 
same..., as a result, the test fails due to the weired problem...
 
 Review comment:
   @paulk-asert Have you ever encountered the similar problem?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to