You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2019/04/18 12:19:43 UTC
[groovy] branch master updated (aafe51f -> 7d66e07)
This is an automated email from the ASF dual-hosted git repository.
paulk pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git.
from aafe51f fix unintended illegal access
new 6ef4a22 fix unintended illegal access
new 7d66e07 fix unintended illegal access
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
src/test/groovy/PrimitiveTypesTest.groovy | 21 ++++++++++-----------
src/test/groovy/beans/BindableTransformTest.groovy | 7 +++----
2 files changed, 13 insertions(+), 15 deletions(-)
[groovy] 02/02: fix unintended illegal access
Posted by pa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git
commit 7d66e07d8254a2b743bb73bb9c24a10d63ae5bdc
Author: Paul King <pa...@asert.com.au>
AuthorDate: Thu Apr 18 22:19:32 2019 +1000
fix unintended illegal access
---
src/test/groovy/beans/BindableTransformTest.groovy | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/test/groovy/beans/BindableTransformTest.groovy b/src/test/groovy/beans/BindableTransformTest.groovy
index 9424450..a91fbb4 100644
--- a/src/test/groovy/beans/BindableTransformTest.groovy
+++ b/src/test/groovy/beans/BindableTransformTest.groovy
@@ -23,7 +23,6 @@ import org.codehaus.groovy.control.CompilationFailedException
import java.beans.PropertyChangeListener
import static java.lang.reflect.Modifier.isPublic
-import static java.lang.reflect.Modifier.isSynthetic
class BindableTransformTest extends GroovyShellTestCase {
@@ -352,9 +351,9 @@ class BindableTransformTest extends GroovyShellTestCase {
void testPropertyChangeMethodsNotSynthetic() {
def clazz = new GroovyClassLoader().parseClass('class MyBean { @groovy.beans.Bindable String dummy }', 'dummyName')
- def modifiers = clazz.getMethod('addPropertyChangeListener', PropertyChangeListener).modifiers
- assert isPublic(modifiers)
- assert !isSynthetic(modifiers)
+ def method = clazz.getMethod('addPropertyChangeListener', PropertyChangeListener)
+ assert isPublic(method.modifiers)
+ assert !method.isSynthetic()
}
void testPropertyChangeMethodWithCompileStatic() {
[groovy] 01/02: fix unintended illegal access
Posted by pa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git
commit 6ef4a222d0e77d27a980aea6be9e5385f3f9b568
Author: Paul King <pa...@asert.com.au>
AuthorDate: Thu Apr 18 22:12:36 2019 +1000
fix unintended illegal access
---
src/test/groovy/PrimitiveTypesTest.groovy | 21 ++++++++++-----------
1 file changed, 10 insertions(+), 11 deletions(-)
diff --git a/src/test/groovy/PrimitiveTypesTest.groovy b/src/test/groovy/PrimitiveTypesTest.groovy
index eacd6d8..15cf1b7 100644
--- a/src/test/groovy/PrimitiveTypesTest.groovy
+++ b/src/test/groovy/PrimitiveTypesTest.groovy
@@ -21,35 +21,35 @@ package groovy
class PrimitiveTypesTest extends GroovyTestCase {
int getInt() {
- return 1;
+ return 1
}
short getShort() {
- return 1;
+ return 1
}
boolean getBoolean() {
- return true;
+ return true
}
double getDouble() {
- return 1.0;
+ return 1.0
}
float getFloat() {
- return 1.0;
+ return 1.0
}
byte getByte() {
- return 1;
+ return 1
}
long getLong() {
- return 1;
+ return 1
}
char getChar() {
- return 'a';
+ return 'a'
}
int getNextInt(int i) {
@@ -85,15 +85,14 @@ class PrimitiveTypesTest extends GroovyTestCase {
}
void testBigInteger2BigDecimal() {
- BigInteger big = new BigInteger(Long.MAX_VALUE)
+ BigInteger big = BigInteger.valueOf(Long.MAX_VALUE)
assert big.longValue() == testMethod(big).longValueExact()
}
private testMethod(BigDecimal bd) {
- return bd;
+ return bd
}
-
static void main(args) {
new PrimitiveTypesTest().testPrimitiveTypes()
}