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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]