You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by GitBox <gi...@apache.org> on 2021/11/14 10:27:01 UTC

[GitHub] [groovy] danielsun1106 commented on a change in pull request #1651: GROOVY-10353: `evaluateExpression` can handle simple expression directly

danielsun1106 commented on a change in pull request #1651:
URL: https://github.com/apache/groovy/pull/1651#discussion_r748833443



##########
File path: src/main/java/groovy/lang/GroovyClassLoader.java
##########
@@ -703,10 +703,10 @@ public Collection getLoadedClasses() {
     }
 
     /**
-     * open up the super class define that takes raw bytes
+     * Converts an array of bytes into an instance of {@code Class}.
      */
-    public Class defineClass(String name, byte[] b) {

Review comment:
       It seems that the PR derives the exceptiion definition from the following method:
   
   **java.lang.ClassLoader#defineClass(java.lang.String, byte[], int, int)**
   ```java
       protected final Class<?> defineClass(String name, byte[] b, int off, int len)
           throws ClassFormatError
       {
           return defineClass(name, b, off, len, null);
       }
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@groovy.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org