language
stringclasses
1 value
owner
stringlengths
2
15
repo
stringlengths
2
21
sha
stringlengths
45
45
message
stringlengths
7
36.3k
path
stringlengths
1
199
patch
stringlengths
15
102k
is_multipart
bool
2 classes
Other
spring-projects
spring-framework
6d882b149d0b32bab116a49ac5486abeb819f4f1.json
Add targetIsClass to SpEL property cache key Update the `CacheKey` class used by `ReflectivePropertyAccessor` to include if the target object is class. The prevents an incorrect cache hit from being returned when a property with the same name is read on both an object and its class. For example: #{class.name} #{nam...
spring-expression/src/main/java/org/springframework/expression/spel/support/ReflectivePropertyAccessor.java
@@ -29,6 +29,7 @@ import org.springframework.core.MethodParameter; import org.springframework.core.convert.Property; import org.springframework.core.convert.TypeDescriptor; +import org.springframework.core.style.ToStringCreator; import org.springframework.expression.AccessException; import org.springframework.expr...
true
Other
spring-projects
spring-framework
6d882b149d0b32bab116a49ac5486abeb819f4f1.json
Add targetIsClass to SpEL property cache key Update the `CacheKey` class used by `ReflectivePropertyAccessor` to include if the target object is class. The prevents an incorrect cache hit from being returned when a property with the same name is read on both an object and its class. For example: #{class.name} #{nam...
spring-expression/src/test/java/org/springframework/expression/spel/SpelReproTests.java
@@ -1820,6 +1820,19 @@ public TypedValue execute(EvaluationContext context, Object target, Object... ar assertEquals(XYZ.Z, Array.get(result, 2)); } + @Test + public void SPR_10486() throws Exception { + SpelExpressionParser parser = new SpelExpressionParser(); + StandardEvaluationContext context = new Standar...
true
Other
spring-projects
spring-framework
7658d856cac027ae367f04833bee6c43c62b5534.json
Assert context uniqueness against merged config Prior to this commit, the uniqueness check for @ContextConfiguration attributes within a @ContextHierarchy was performed at a single test class level instead of against the merged configuration for all test class levels in the test class hierarchy. This commit addresses...
spring-test/src/main/java/org/springframework/test/context/ContextLoaderUtils.java
@@ -237,11 +237,9 @@ private static void convertContextConfigToConfigAttributesAndAddToList(ContextCo * never {@code null} * @throws IllegalArgumentException if the supplied class is {@code null}; if * neither {@code @ContextConfiguration} nor {@code @ContextHierarchy} is - * <em>present</em> on the supplied ...
true
Other
spring-projects
spring-framework
7658d856cac027ae367f04833bee6c43c62b5534.json
Assert context uniqueness against merged config Prior to this commit, the uniqueness check for @ContextConfiguration attributes within a @ContextHierarchy was performed at a single test class level instead of against the merged configuration for all test class levels in the test class hierarchy. This commit addresses...
spring-test/src/test/java/org/springframework/test/context/ContextLoaderUtilsContextHierarchyTests.java
@@ -21,6 +21,8 @@ import java.util.Map; import org.junit.Test; +import org.springframework.context.ApplicationContextInitializer; +import org.springframework.context.ConfigurableApplicationContext; import org.springframework.test.context.support.AnnotationConfigContextLoader; import static org.hamcrest.CoreMatc...
true
Other
spring-projects
spring-framework
b25e91a550beaf428a6e696959b717341a04f27d.json
Relax JavaBean rules for SpEL property access Relax the method search algorithm used by `ReflectivePropertyAccessor` to include methods of the form `getXY()` for properties of the form `xy`. Although the JavaBean specification indicates that a property `xy` should use the accessors `getxY()` and `setxY()`, in practic...
spring-expression/src/main/java/org/springframework/expression/spel/support/ReflectivePropertyAccessor.java
@@ -318,42 +318,34 @@ private Field findField(String name, Class<?> clazz, Object target) { * Find a getter method for the specified property. */ protected Method findGetterForProperty(String propertyName, Class<?> clazz, boolean mustBeStatic) { - Method[] ms = getSortedClassMethods(clazz); - String propertyM...
true
Other
spring-projects
spring-framework
b25e91a550beaf428a6e696959b717341a04f27d.json
Relax JavaBean rules for SpEL property access Relax the method search algorithm used by `ReflectivePropertyAccessor` to include methods of the form `getXY()` for properties of the form `xy`. Although the JavaBean specification indicates that a property `xy` should use the accessors `getxY()` and `setxY()`, in practic...
spring-expression/src/test/java/org/springframework/expression/spel/support/ReflectionHelperTests.java
@@ -335,6 +335,12 @@ public void testReflectivePropertyResolver() throws Exception { assertEquals("id",rpr.read(ctx,t,"Id").getValue()); assertTrue(rpr.canRead(ctx,t,"Id")); + // repro SPR-10994 + assertEquals("xyZ",rpr.read(ctx,t,"xyZ").getValue()); + assertTrue(rpr.canRead(ctx,t,"xyZ")); + assertEquals("x...
true
Other
spring-projects
spring-framework
59fcf5014feac51687cad6222166356bda309147.json
Increase timeout for Stomp integration tests
spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandlerIntegrationTests.java
@@ -595,7 +595,7 @@ public void expectAvailabilityStatusChanges(Boolean... expected) { public void awaitAndAssert() throws InterruptedException { synchronized(this.monitor) { - long endTime = System.currentTimeMillis() + 5000; + long endTime = System.currentTimeMillis() + 6000; while (this.expected....
false
Other
spring-projects
spring-framework
efa86e80d8be934519de189cecaaba9f05c6ebbc.json
Upgrade json-path to 0.9.0 version This version fixed bugs and improved performance. New features: "select multiple attributes" and "Array operations and slicing improved" (a new example has been added in tests to reflect that). See https://github.com/jayway/JsonPath/blob/master/README Issue: SPR-10990
build.gradle
@@ -756,7 +756,7 @@ project("spring-test") { optional(project(":spring-orm")) optional(project(":spring-web")) optional(project(":spring-webmvc")) - optional(project(":spring-webmvc-portlet"), ) + optional(project(":spring-webmvc-portlet")) optional("junit:junit:${junitVersion}") optional("org.testng:t...
true
Other
spring-projects
spring-framework
efa86e80d8be934519de189cecaaba9f05c6ebbc.json
Upgrade json-path to 0.9.0 version This version fixed bugs and improved performance. New features: "select multiple attributes" and "Array operations and slicing improved" (a new example has been added in tests to reflect that). See https://github.com/jayway/JsonPath/blob/master/README Issue: SPR-10990
spring-test-mvc/src/test/java/org/springframework/test/web/client/samples/matchers/JsonPathRequestMatcherTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,6 +18,7 @@ import static org.hamcrest.M...
true
Other
spring-projects
spring-framework
c4a8bf9c4dd745183d918c05f63752a5a7d317a0.json
Add new features on @ControllerAdvice Prior to this commit, @ControllerAdvice annotated beans would assist all known Controllers, by applying @ExceptionHandler, @InitBinder, and @ModelAttribute. This commit updates the @ControllerAdvice annotation, which accepts now base package names, assignableTypes, annotations an...
spring-web/src/main/java/org/springframework/web/bind/annotation/ControllerAdvice.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -34,7 +34,21 @@ * {@link InitBinder @InitB...
true
Other
spring-projects
spring-framework
c4a8bf9c4dd745183d918c05f63752a5a7d317a0.json
Add new features on @ControllerAdvice Prior to this commit, @ControllerAdvice annotated beans would assist all known Controllers, by applying @ExceptionHandler, @InitBinder, and @ModelAttribute. This commit updates the @ControllerAdvice annotation, which accepts now base package names, assignableTypes, annotations an...
spring-web/src/main/java/org/springframework/web/method/ControllerAdviceBean.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,16 +15,21 @@ */ package org.springfra...
true
Other
spring-projects
spring-framework
c4a8bf9c4dd745183d918c05f63752a5a7d317a0.json
Add new features on @ControllerAdvice Prior to this commit, @ControllerAdvice annotated beans would assist all known Controllers, by applying @ExceptionHandler, @InitBinder, and @ModelAttribute. This commit updates the @ControllerAdvice annotation, which accepts now base package names, assignableTypes, annotations an...
spring-web/src/test/java/org/springframework/web/method/ControllerAdviceBeanTests.java
@@ -0,0 +1,144 @@ +package org.springframework.web.method; + +import org.junit.Test; +import org.springframework.web.bind.annotation.ControllerAdvice; +import org.springframework.web.bind.annotation.RestController; + +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +import static ...
true
Other
spring-projects
spring-framework
c4a8bf9c4dd745183d918c05f63752a5a7d317a0.json
Add new features on @ControllerAdvice Prior to this commit, @ControllerAdvice annotated beans would assist all known Controllers, by applying @ExceptionHandler, @InitBinder, and @ModelAttribute. This commit updates the @ControllerAdvice annotation, which accepts now base package names, assignableTypes, annotations an...
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ExceptionHandlerExceptionResolver.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -351,8 +351,8 @@ protected ModelAndView doRe...
true
Other
spring-projects
spring-framework
c4a8bf9c4dd745183d918c05f63752a5a7d317a0.json
Add new features on @ControllerAdvice Prior to this commit, @ControllerAdvice annotated beans would assist all known Controllers, by applying @ExceptionHandler, @InitBinder, and @ModelAttribute. This commit updates the @ControllerAdvice annotation, which accepts now base package names, assignableTypes, annotations an...
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerAdapter.java
@@ -776,9 +776,11 @@ private ModelFactory getModelFactory(HandlerMethod handlerMethod, WebDataBinderF List<InvocableHandlerMethod> attrMethods = new ArrayList<InvocableHandlerMethod>(); // Global methods first for (Entry<ControllerAdviceBean, Set<Method>> entry : this.modelAttributeAdviceCache.entrySet()) { - ...
true
Other
spring-projects
spring-framework
c4a8bf9c4dd745183d918c05f63752a5a7d317a0.json
Add new features on @ControllerAdvice Prior to this commit, @ControllerAdvice annotated beans would assist all known Controllers, by applying @ExceptionHandler, @InitBinder, and @ModelAttribute. This commit updates the @ControllerAdvice annotation, which accepts now base package names, assignableTypes, annotations an...
spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ExceptionHandlerExceptionResolverTests.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -204,6 +204,35 @@ public void resolveExcepti...
true
Other
spring-projects
spring-framework
c4a8bf9c4dd745183d918c05f63752a5a7d317a0.json
Add new features on @ControllerAdvice Prior to this commit, @ControllerAdvice annotated beans would assist all known Controllers, by applying @ExceptionHandler, @InitBinder, and @ModelAttribute. This commit updates the @ControllerAdvice annotation, which accepts now base package names, assignableTypes, annotations an...
spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerAdapterTests.java
@@ -25,7 +25,9 @@ import org.springframework.mock.web.test.MockHttpServletRequest; import org.springframework.mock.web.test.MockHttpServletResponse; import org.springframework.ui.Model; +import org.springframework.web.bind.WebDataBinder; import org.springframework.web.bind.annotation.ControllerAdvice; +import org.s...
true
Other
spring-projects
spring-framework
29934d7c0249e54897cb06c1d779dcaec4d6f4ee.json
Add TCP abstractions to spring-messaging This change adds abstractions for opening and managing TCP connections primarily for use with the STOMP broker support. As one immediate benefit the change makes the StompBrokerRelayMessageHandler more easy to test.
spring-messaging/src/main/java/org/springframework/messaging/MessageDeliveryException.java
@@ -37,6 +37,10 @@ public MessageDeliveryException(Message<?> undeliveredMessage, String descriptio super(undeliveredMessage, description); } + public MessageDeliveryException(Message<?> message, Throwable cause) { + super(message, cause); + } + public MessageDeliveryException(Message<?> undeliveredMessage, S...
true
Other
spring-projects
spring-framework
29934d7c0249e54897cb06c1d779dcaec4d6f4ee.json
Add TCP abstractions to spring-messaging This change adds abstractions for opening and managing TCP connections primarily for use with the STOMP broker support. As one immediate benefit the change makes the StompBrokerRelayMessageHandler more easy to test.
spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandler.java
@@ -16,11 +16,10 @@ package org.springframework.messaging.simp.stomp; -import java.net.InetSocketAddress; import java.util.Collection; import java.util.Map; +import java.util.concurrent.Callable; import java.util.concurrent.ConcurrentHashMap; -import java.util.concurrent.atomic.AtomicReference; import org.sp...
true
Other
spring-projects
spring-framework
29934d7c0249e54897cb06c1d779dcaec4d6f4ee.json
Add TCP abstractions to spring-messaging This change adds abstractions for opening and managing TCP connections primarily for use with the STOMP broker support. As one immediate benefit the change makes the StompBrokerRelayMessageHandler more easy to test.
spring-messaging/src/main/java/org/springframework/messaging/support/tcp/FixedIntervalReconnectStrategy.java
@@ -0,0 +1,43 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + *...
true
Other
spring-projects
spring-framework
29934d7c0249e54897cb06c1d779dcaec4d6f4ee.json
Add TCP abstractions to spring-messaging This change adds abstractions for opening and managing TCP connections primarily for use with the STOMP broker support. As one immediate benefit the change makes the StompBrokerRelayMessageHandler more easy to test.
spring-messaging/src/main/java/org/springframework/messaging/support/tcp/PromiseToListenableFutureAdapter.java
@@ -0,0 +1,110 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + ...
true
Other
spring-projects
spring-framework
29934d7c0249e54897cb06c1d779dcaec4d6f4ee.json
Add TCP abstractions to spring-messaging This change adds abstractions for opening and managing TCP connections primarily for use with the STOMP broker support. As one immediate benefit the change makes the StompBrokerRelayMessageHandler more easy to test.
spring-messaging/src/main/java/org/springframework/messaging/support/tcp/ReactorNettyTcpClient.java
@@ -0,0 +1,127 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + ...
true
Other
spring-projects
spring-framework
29934d7c0249e54897cb06c1d779dcaec4d6f4ee.json
Add TCP abstractions to spring-messaging This change adds abstractions for opening and managing TCP connections primarily for use with the STOMP broker support. As one immediate benefit the change makes the StompBrokerRelayMessageHandler more easy to test.
spring-messaging/src/main/java/org/springframework/messaging/support/tcp/ReactorTcpConnection.java
@@ -0,0 +1,134 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + ...
true
Other
spring-projects
spring-framework
29934d7c0249e54897cb06c1d779dcaec4d6f4ee.json
Add TCP abstractions to spring-messaging This change adds abstractions for opening and managing TCP connections primarily for use with the STOMP broker support. As one immediate benefit the change makes the StompBrokerRelayMessageHandler more easy to test.
spring-messaging/src/main/java/org/springframework/messaging/support/tcp/ReconnectStrategy.java
@@ -0,0 +1,36 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + *...
true
Other
spring-projects
spring-framework
29934d7c0249e54897cb06c1d779dcaec4d6f4ee.json
Add TCP abstractions to spring-messaging This change adds abstractions for opening and managing TCP connections primarily for use with the STOMP broker support. As one immediate benefit the change makes the StompBrokerRelayMessageHandler more easy to test.
spring-messaging/src/main/java/org/springframework/messaging/support/tcp/TcpConnection.java
@@ -0,0 +1,58 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + *...
true
Other
spring-projects
spring-framework
29934d7c0249e54897cb06c1d779dcaec4d6f4ee.json
Add TCP abstractions to spring-messaging This change adds abstractions for opening and managing TCP connections primarily for use with the STOMP broker support. As one immediate benefit the change makes the StompBrokerRelayMessageHandler more easy to test.
spring-messaging/src/main/java/org/springframework/messaging/support/tcp/TcpConnectionHandler.java
@@ -0,0 +1,55 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + *...
true
Other
spring-projects
spring-framework
29934d7c0249e54897cb06c1d779dcaec4d6f4ee.json
Add TCP abstractions to spring-messaging This change adds abstractions for opening and managing TCP connections primarily for use with the STOMP broker support. As one immediate benefit the change makes the StompBrokerRelayMessageHandler more easy to test.
spring-messaging/src/main/java/org/springframework/messaging/support/tcp/TcpOperations.java
@@ -0,0 +1,51 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + *...
true
Other
spring-projects
spring-framework
29934d7c0249e54897cb06c1d779dcaec4d6f4ee.json
Add TCP abstractions to spring-messaging This change adds abstractions for opening and managing TCP connections primarily for use with the STOMP broker support. As one immediate benefit the change makes the StompBrokerRelayMessageHandler more easy to test.
spring-messaging/src/main/java/org/springframework/messaging/support/tcp/package-info.java
@@ -0,0 +1,9 @@ +/** + * Contains abstractions and implementation classes for establishing TCP connections via + * {@link org.springframework.messaging.support.tcp.TcpOperations TcpOperations}, + * handling messages via + * {@link org.springframework.messaging.support.tcp.TcpConnectionHandler TcpConnectionHandler}, + *...
true
Other
spring-projects
spring-framework
29934d7c0249e54897cb06c1d779dcaec4d6f4ee.json
Add TCP abstractions to spring-messaging This change adds abstractions for opening and managing TCP connections primarily for use with the STOMP broker support. As one immediate benefit the change makes the StompBrokerRelayMessageHandler more easy to test.
spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandlerIntegrationTests.java
@@ -231,14 +231,13 @@ public void relayReconnectsIfBrokerComesBackUp() throws Exception { @Test public void disconnectClosesRelaySessionCleanly() throws Exception { - String sess1 = "sess1"; - MessageExchange conn1 = MessageExchangeBuilder.connect(sess1).build(); - this.responseHandler.expect(conn1); - this.r...
true
Other
spring-projects
spring-framework
3337fd32cba66aee549e4dddae61b86fe80832e3.json
Refine ResolvableType class - Support for serialization - Allow programmatic creation of an array from a given component type - Allow programmatic creation with given generics - Extract generics from Class types using Class.getTypeParameters() - Move TypeVariableResolver to an inner class (and make method private) - R...
spring-core/src/main/java/org/springframework/core/GenericTypeResolver.java
@@ -256,10 +256,22 @@ public static Class[] resolveTypeArguments(Class<?> clazz, Class<?> genericIfc) * @deprecated as of Spring 4.0 in favor of {@link ResolvableType} */ @Deprecated - public static Class<?> resolveType(Type genericType, Map<TypeVariable, Type> typeVariableMap) { - TypeVariableResolver variabl...
true
Other
spring-projects
spring-framework
3337fd32cba66aee549e4dddae61b86fe80832e3.json
Refine ResolvableType class - Support for serialization - Allow programmatic creation of an array from a given component type - Allow programmatic creation with given generics - Extract generics from Class types using Class.getTypeParameters() - Move TypeVariableResolver to an inner class (and make method private) - R...
spring-core/src/main/java/org/springframework/core/ResolvableType.java
@@ -16,6 +16,8 @@ package org.springframework.core; +import java.io.ObjectStreamException; +import java.io.Serializable; import java.lang.reflect.Array; import java.lang.reflect.Constructor; import java.lang.reflect.Field; @@ -41,9 +43,9 @@ * * <p>{@code ResolvableTypes} may be obtained from {@link #forFiel...
true
Other
spring-projects
spring-framework
3337fd32cba66aee549e4dddae61b86fe80832e3.json
Refine ResolvableType class - Support for serialization - Allow programmatic creation of an array from a given component type - Allow programmatic creation with given generics - Extract generics from Class types using Class.getTypeParameters() - Move TypeVariableResolver to an inner class (and make method private) - R...
spring-core/src/main/java/org/springframework/core/SerializableTypeWrapper.java
@@ -0,0 +1,330 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + ...
true
Other
spring-projects
spring-framework
3337fd32cba66aee549e4dddae61b86fe80832e3.json
Refine ResolvableType class - Support for serialization - Allow programmatic creation of an array from a given component type - Allow programmatic creation with given generics - Extract generics from Class types using Class.getTypeParameters() - Move TypeVariableResolver to an inner class (and make method private) - R...
spring-core/src/main/java/org/springframework/core/TypeVariableResolver.java
@@ -1,40 +0,0 @@ -/* - * Copyright 2002-2013 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - *...
true
Other
spring-projects
spring-framework
3337fd32cba66aee549e4dddae61b86fe80832e3.json
Refine ResolvableType class - Support for serialization - Allow programmatic creation of an array from a given component type - Allow programmatic creation with given generics - Extract generics from Class types using Class.getTypeParameters() - Move TypeVariableResolver to an inner class (and make method private) - R...
spring-core/src/test/java/org/springframework/core/ResolvableTypeTests.java
@@ -16,6 +16,10 @@ package org.springframework.core; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.ObjectInputStream; +import java.io.ObjectOutputStream; import java.io.Serializable; import java.lang.reflect.Constructor; import java.lang.reflect.Field; @@ -44,12 +4...
true
Other
spring-projects
spring-framework
3337fd32cba66aee549e4dddae61b86fe80832e3.json
Refine ResolvableType class - Support for serialization - Allow programmatic creation of an array from a given component type - Allow programmatic creation with given generics - Extract generics from Class types using Class.getTypeParameters() - Move TypeVariableResolver to an inner class (and make method private) - R...
spring-core/src/test/java/org/springframework/core/SerializableTypeWrapperTests.java
@@ -0,0 +1,171 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + ...
true
Other
spring-projects
spring-framework
190bf247a30a2f13ead89383e5e0476584652dd1.json
Add helper method to ResourceHandlerRegistry
spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/ResourceHandlerRegistry.java
@@ -17,6 +17,7 @@ package org.springframework.web.servlet.config.annotation; import java.util.ArrayList; +import java.util.Arrays; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; @@ -64,6 +65,7 @@ public ResourceHandlerRegistry(ApplicationContext applicationContext, ServletCon thi...
true
Other
spring-projects
spring-framework
190bf247a30a2f13ead89383e5e0476584652dd1.json
Add helper method to ResourceHandlerRegistry
spring-webmvc/src/test/java/org/springframework/web/servlet/config/annotation/ResourceHandlerRegistryTests.java
@@ -16,9 +16,6 @@ package org.springframework.web.servlet.config.annotation; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNull; - import org.junit.Before; import org.junit.Test; import org.springframework.mock.web.test.MockHttpServletRequest; @@ -29,6 +26,8 @@ import org....
true
Other
spring-projects
spring-framework
079bebcfb519dabcd975ccc91a7bba6812ca5257.json
Delete unused import in StdReflParamNameDscoverer
spring-core/src/main/java/org/springframework/core/StandardReflectionParameterNameDiscoverer.java
@@ -20,8 +20,6 @@ import java.lang.reflect.Method; import java.lang.reflect.Parameter; -import org.springframework.util.ClassUtils; - /** * {@link ParameterNameDiscoverer} implementation which uses JDK 8's * reflection facilities for introspecting parameter names.
false
Other
spring-projects
spring-framework
bcfbd862c73db17d7bd8dfe5b669d1a8fc17bcbf.json
Add value() attribute to @Payload
spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/Payload.java
@@ -38,6 +38,16 @@ @Documented public @interface Payload { + /** + * A SpEL expression to be evaluated against the payload object as the root context. + * This attribute may or may not be supported depending on whether the message being + * handled contains a non-primitive Object as its payload or is in serializ...
true
Other
spring-projects
spring-framework
bcfbd862c73db17d7bd8dfe5b669d1a8fc17bcbf.json
Add value() attribute to @Payload
spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/support/PayloadArgumentResolver.java
@@ -23,6 +23,7 @@ import org.springframework.messaging.support.converter.MessageConverter; import org.springframework.util.Assert; import org.springframework.util.ClassUtils; +import org.springframework.util.StringUtils; /** @@ -69,6 +70,10 @@ public Object resolveArgument(MethodParameter parameter, Message<?> ...
true
Other
spring-projects
spring-framework
bcfbd862c73db17d7bd8dfe5b669d1a8fc17bcbf.json
Add value() attribute to @Payload
spring-messaging/src/test/java/org/springframework/messaging/handler/annotation/support/PayloadArgumentResolverTests.java
@@ -41,6 +41,7 @@ public class PayloadArgumentResolverTests { private MethodParameter param; private MethodParameter paramNotRequired; + private MethodParameter paramWithSpelExpression; @Before @@ -50,10 +51,11 @@ public void setup() throws Exception { this.resolver = new PayloadArgumentResolver(messageC...
true
Other
spring-projects
spring-framework
70dfec269b2ea249b2abf3cf252774a6fd578b39.json
Use alternative UUID strategy in MessageHeaders This change adds an alternative UUID generation strategy to use by default in MessageHeaders. Instead of using SecureRandom for each new UUID, SecureRandom is used only for the initial seed to be provided java.util.Random. Thereafter the same Random instance is used inst...
spring-messaging/src/main/java/org/springframework/messaging/MessageHeaders.java
@@ -20,6 +20,8 @@ import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.io.Serializable; +import java.math.BigInteger; +import java.security.SecureRandom; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; @@ -28,6 +30,7 @@ import java.util.LinkedHashMap;...
true
Other
spring-projects
spring-framework
70dfec269b2ea249b2abf3cf252774a6fd578b39.json
Use alternative UUID strategy in MessageHeaders This change adds an alternative UUID generation strategy to use by default in MessageHeaders. Instead of using SecureRandom for each new UUID, SecureRandom is used only for the initial seed to be provided java.util.Random. Thereafter the same Random instance is used inst...
spring-messaging/src/test/java/org/springframework/messaging/MessageHeadersTests.java
@@ -0,0 +1,154 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
7c3749769a8d136eee5e3b01e156b9a5eac3ec49.json
Add STOMP broker relay to configure "host" header Issue: SPR-10955
spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandler.java
@@ -47,9 +47,24 @@ /** - * A {@link MessageHandler} that handles messages by forwarding them to a STOMP broker and - * reversely sends any returned messages from the broker to the provided - * {@link MessageChannel}. + * A {@link MessageHandler} that handles messages by forwarding them to a STOMP broker. + * For e...
true
Other
spring-projects
spring-framework
7c3749769a8d136eee5e3b01e156b9a5eac3ec49.json
Add STOMP broker relay to configure "host" header Issue: SPR-10955
spring-messaging/src/test/java/org/springframework/messaging/simp/stomp/StompBrokerRelayMessageHandlerIntegrationTests.java
@@ -113,6 +113,8 @@ public void tearDown() throws Exception { } } + // test "host" header (virtualHost property) when TCP client is behind interface and configurable + @Test public void publishSubscribe() throws Exception {
true
Other
spring-projects
spring-framework
cf7889e226519bec62345affa7c401b0abbebecc.json
Fix issue with DeferredResult on @RestController Before this change, async result handling on controller methods failed to observe type-level annotations annotations. The issue was never noticed until we started supporting type-level @ResponseBody and the @RestController meta annotation. Issue: SPR-10905
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ServletInvocableHandlerMethod.java
@@ -174,9 +174,10 @@ private String getReturnValueHandlingErrorMessage(String message, Object returnV } /** - * Return a ServletInvocableHandlerMethod that will process the value returned - * from an async operation essentially either applying return value handling or - * raising an exception if the end result...
true
Other
spring-projects
spring-framework
cf7889e226519bec62345affa7c401b0abbebecc.json
Fix issue with DeferredResult on @RestController Before this change, async result handling on controller methods failed to observe type-level annotations annotations. The issue was never noticed until we started supporting type-level @ResponseBody and the @RestController meta annotation. Issue: SPR-10905
spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/ServletInvocableHandlerMethodTests.java
@@ -15,33 +15,37 @@ */ package org.springframework.web.servlet.mvc.method.annotation; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; - import java.lang.reflect.Method; +import java.util....
true
Other
spring-projects
spring-framework
74794190a53a096cc1eca99202e5e9f9a70f0503.json
Implement java.io.Flushable wherever applicable
spring-tx/src/main/java/org/springframework/transaction/TransactionStatus.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2009 the original author or authors. + * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,8 @@ package org.springframewor...
true
Other
spring-projects
spring-framework
74794190a53a096cc1eca99202e5e9f9a70f0503.json
Implement java.io.Flushable wherever applicable
spring-tx/src/main/java/org/springframework/transaction/support/SmartTransactionObject.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2009 the original author or authors. + * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,8 @@ package org.springframewor...
true
Other
spring-projects
spring-framework
74794190a53a096cc1eca99202e5e9f9a70f0503.json
Implement java.io.Flushable wherever applicable
spring-tx/src/main/java/org/springframework/transaction/support/TransactionSynchronization.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,8 @@ package org.springframewor...
true
Other
spring-projects
spring-framework
74794190a53a096cc1eca99202e5e9f9a70f0503.json
Implement java.io.Flushable wherever applicable
spring-web/src/main/java/org/springframework/http/server/ServerHttpResponse.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ package org.springframework....
true
Other
spring-projects
spring-framework
7823c5d6ea6d0074f27f765066ba51daf990074d.json
Upgrade reactor to M1
build.gradle
@@ -322,15 +322,15 @@ project("spring-messaging") { compile(project(":spring-context")) optional(project(":spring-websocket")) optional("com.fasterxml.jackson.core:jackson-databind:2.2.0") - optional("org.projectreactor:reactor-core:1.0.0.BUILD-SNAPSHOT") - optional("org.projectreactor:reactor-tcp:1.0.0.BUIL...
false
Other
spring-projects
spring-framework
55dae74f156c1c8326e182e5f1eb7a162cba56a8.json
Add ReplyTo annotation
spring-messaging/src/main/java/org/springframework/messaging/handler/annotation/ReplyTo.java
@@ -14,34 +14,28 @@ * limitations under the License. */ -package org.springframework.messaging.simp; +package org.springframework.messaging.handler.annotation; -import org.springframework.core.NamedThreadLocal; -import org.springframework.messaging.Message; +import java.lang.annotation.Documented; +import java....
true
Other
spring-projects
spring-framework
55dae74f156c1c8326e182e5f1eb7a162cba56a8.json
Add ReplyTo annotation
spring-messaging/src/main/java/org/springframework/messaging/handler/method/MissingSessionUserException.java
@@ -16,7 +16,6 @@ package org.springframework.messaging.handler.method; -import org.springframework.core.MethodParameter; import org.springframework.messaging.Message; import org.springframework.messaging.MessagingException; @@ -26,29 +25,13 @@ * @author Rossen Stoyanchev * @since 4.0 */ -public class In...
true
Other
spring-projects
spring-framework
55dae74f156c1c8326e182e5f1eb7a162cba56a8.json
Add ReplyTo annotation
spring-messaging/src/main/java/org/springframework/messaging/simp/annotation/support/DefaultMessageReturnValueHandler.java
@@ -16,30 +16,47 @@ package org.springframework.messaging.simp.annotation.support; +import java.security.Principal; + import org.springframework.core.MethodParameter; import org.springframework.messaging.Message; import org.springframework.messaging.MessageChannel; +import org.springframework.messaging.handler....
true
Other
spring-projects
spring-framework
55dae74f156c1c8326e182e5f1eb7a162cba56a8.json
Add ReplyTo annotation
spring-messaging/src/main/java/org/springframework/messaging/simp/annotation/support/PrincipalMessageArgumentResolver.java
@@ -20,8 +20,8 @@ import org.springframework.core.MethodParameter; import org.springframework.messaging.Message; -import org.springframework.messaging.handler.method.InvalidMessageMethodParameterException; import org.springframework.messaging.handler.method.MessageArgumentResolver; +import org.springframework.mess...
true
Other
spring-projects
spring-framework
55dae74f156c1c8326e182e5f1eb7a162cba56a8.json
Add ReplyTo annotation
spring-messaging/src/main/java/org/springframework/messaging/simp/handler/AnnotationMethodMessageHandler.java
@@ -43,12 +43,11 @@ import org.springframework.messaging.handler.method.InvocableMessageHandlerMethod; import org.springframework.messaging.handler.method.MessageArgumentResolverComposite; import org.springframework.messaging.handler.method.MessageReturnValueHandlerComposite; -import org.springframework.messaging.si...
true
Other
spring-projects
spring-framework
55dae74f156c1c8326e182e5f1eb7a162cba56a8.json
Add ReplyTo annotation
spring-messaging/src/main/java/org/springframework/messaging/simp/handler/SimpleUserSessionResolver.java
@@ -27,7 +27,7 @@ * @author Rossen Stoyanchev * @since 4.0 */ -public class InMemoryUserSessionResolver implements UserSessionResolver, UserSessionStore { +public class SimpleUserSessionResolver implements UserSessionResolver, UserSessionStore { // userId -> sessionId's private final Map<String, Set<String>...
true
Other
spring-projects
spring-framework
55dae74f156c1c8326e182e5f1eb7a162cba56a8.json
Add ReplyTo annotation
spring-messaging/src/main/java/org/springframework/messaging/simp/handler/UserDestinationMessageHandler.java
@@ -47,7 +47,7 @@ public class UserDestinationMessageHandler implements MessageHandler { private String prefix = "/user/"; - private UserSessionResolver userSessionResolver = new InMemoryUserSessionResolver(); + private UserSessionResolver userSessionResolver = new SimpleUserSessionResolver(); public UserDe...
true
Other
spring-projects
spring-framework
5d20b75dc215aa4d732d97f53266810c7d936be0.json
Add support for sending private messages The new UserDestinationMessageHandler resolves messages with destinations prefixed with "/user/{username}" and resolves them into a destination to which the user is currently subscribed by appending the user session id. For example a destination such as "/user/john/queue/trade...
spring-messaging/src/main/java/org/springframework/messaging/simp/handler/AnnotationMethodMessageHandler.java
@@ -63,9 +63,9 @@ * @author Rossen Stoyanchev * @since 4.0 */ -public class AnnotationSimpMessageHandler implements MessageHandler, ApplicationContextAware, InitializingBean { +public class AnnotationMethodMessageHandler implements MessageHandler, ApplicationContextAware, InitializingBean { - private static fin...
true
Other
spring-projects
spring-framework
5d20b75dc215aa4d732d97f53266810c7d936be0.json
Add support for sending private messages The new UserDestinationMessageHandler resolves messages with destinations prefixed with "/user/{username}" and resolves them into a destination to which the user is currently subscribed by appending the user session id. For example a destination such as "/user/john/queue/trade...
spring-messaging/src/main/java/org/springframework/messaging/simp/handler/InMemoryUserSessionResolver.java
@@ -0,0 +1,62 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + *...
true
Other
spring-projects
spring-framework
5d20b75dc215aa4d732d97f53266810c7d936be0.json
Add support for sending private messages The new UserDestinationMessageHandler resolves messages with destinations prefixed with "/user/{username}" and resolves them into a destination to which the user is currently subscribed by appending the user session id. For example a destination such as "/user/john/queue/trade...
spring-messaging/src/main/java/org/springframework/messaging/simp/handler/UserDestinationMessageHandler.java
@@ -0,0 +1,187 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + ...
true
Other
spring-projects
spring-framework
5d20b75dc215aa4d732d97f53266810c7d936be0.json
Add support for sending private messages The new UserDestinationMessageHandler resolves messages with destinations prefixed with "/user/{username}" and resolves them into a destination to which the user is currently subscribed by appending the user session id. For example a destination such as "/user/john/queue/trade...
spring-messaging/src/main/java/org/springframework/messaging/simp/handler/UserSessionResolver.java
@@ -0,0 +1,38 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + *...
true
Other
spring-projects
spring-framework
5d20b75dc215aa4d732d97f53266810c7d936be0.json
Add support for sending private messages The new UserDestinationMessageHandler resolves messages with destinations prefixed with "/user/{username}" and resolves them into a destination to which the user is currently subscribed by appending the user session id. For example a destination such as "/user/john/queue/trade...
spring-messaging/src/main/java/org/springframework/messaging/simp/handler/UserSessionStore.java
@@ -0,0 +1,30 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + *...
true
Other
spring-projects
spring-framework
5d20b75dc215aa4d732d97f53266810c7d936be0.json
Add support for sending private messages The new UserDestinationMessageHandler resolves messages with destinations prefixed with "/user/{username}" and resolves them into a destination to which the user is currently subscribed by appending the user session id. For example a destination such as "/user/john/queue/trade...
spring-messaging/src/main/java/org/springframework/messaging/simp/handler/package-info.java
@@ -0,0 +1,4 @@ +/** + * MessageHandler implementation and supporting classes for message processing. + */ +package org.springframework.messaging.simp.handler;
true
Other
spring-projects
spring-framework
5d20b75dc215aa4d732d97f53266810c7d936be0.json
Add support for sending private messages The new UserDestinationMessageHandler resolves messages with destinations prefixed with "/user/{username}" and resolves them into a destination to which the user is currently subscribed by appending the user session id. For example a destination such as "/user/john/queue/trade...
spring-messaging/src/main/java/org/springframework/messaging/simp/stomp/StompWebSocketHandler.java
@@ -27,6 +27,8 @@ import org.springframework.messaging.MessageChannel; import org.springframework.messaging.MessageHandler; import org.springframework.messaging.simp.SimpMessageType; +import org.springframework.messaging.simp.handler.UserDestinationMessageHandler; +import org.springframework.messaging.simp.handler.U...
true
Other
spring-projects
spring-framework
14ab2c88cc512a92d82db1f8fbb22d53445c6aa2.json
Request streaming for Apache HttpClient - Added org.springframework.http.StreamingHttpOutputMessage, which allows for a settable request body (as opposed to an output stream). - Added http.client.HttpComponentsStreamingClientHttpRequest, which implements the above mentioned interface, mapping setBody() to a set...
spring-web/src/main/java/org/springframework/http/StreamingHttpOutputMessage.java
@@ -0,0 +1,54 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + ...
true
Other
spring-projects
spring-framework
14ab2c88cc512a92d82db1f8fbb22d53445c6aa2.json
Request streaming for Apache HttpClient - Added org.springframework.http.StreamingHttpOutputMessage, which allows for a settable request body (as opposed to an output stream). - Added http.client.HttpComponentsStreamingClientHttpRequest, which implements the above mentioned interface, mapping setBody() to a set...
spring-web/src/main/java/org/springframework/http/client/AbstractClientHttpRequest.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -43,7 +43,7 @@ public final HttpHeaders getH...
true
Other
spring-projects
spring-framework
14ab2c88cc512a92d82db1f8fbb22d53445c6aa2.json
Request streaming for Apache HttpClient - Added org.springframework.http.StreamingHttpOutputMessage, which allows for a settable request body (as opposed to an output stream). - Added http.client.HttpComponentsStreamingClientHttpRequest, which implements the above mentioned interface, mapping setBody() to a set...
spring-web/src/main/java/org/springframework/http/client/HttpComponentsClientHttpRequest.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -73,22 +73,35 @@ public URI getURI() { @...
true
Other
spring-projects
spring-framework
14ab2c88cc512a92d82db1f8fbb22d53445c6aa2.json
Request streaming for Apache HttpClient - Added org.springframework.http.StreamingHttpOutputMessage, which allows for a settable request body (as opposed to an output stream). - Added http.client.HttpComponentsStreamingClientHttpRequest, which implements the above mentioned interface, mapping setBody() to a set...
spring-web/src/main/java/org/springframework/http/client/HttpComponentsClientHttpRequestFactory.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -64,6 +64,7 @@ public class HttpComponentsCl...
true
Other
spring-projects
spring-framework
14ab2c88cc512a92d82db1f8fbb22d53445c6aa2.json
Request streaming for Apache HttpClient - Added org.springframework.http.StreamingHttpOutputMessage, which allows for a settable request body (as opposed to an output stream). - Added http.client.HttpComponentsStreamingClientHttpRequest, which implements the above mentioned interface, mapping setBody() to a set...
spring-web/src/main/java/org/springframework/http/client/HttpComponentsStreamingClientHttpRequest.java
@@ -0,0 +1,168 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 +...
true
Other
spring-projects
spring-framework
14ab2c88cc512a92d82db1f8fbb22d53445c6aa2.json
Request streaming for Apache HttpClient - Added org.springframework.http.StreamingHttpOutputMessage, which allows for a settable request body (as opposed to an output stream). - Added http.client.HttpComponentsStreamingClientHttpRequest, which implements the above mentioned interface, mapping setBody() to a set...
spring-web/src/main/java/org/springframework/http/converter/AbstractHttpMessageConverter.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ package org.springframework....
true
Other
spring-projects
spring-framework
14ab2c88cc512a92d82db1f8fbb22d53445c6aa2.json
Request streaming for Apache HttpClient - Added org.springframework.http.StreamingHttpOutputMessage, which allows for a settable request body (as opposed to an output stream). - Added http.client.HttpComponentsStreamingClientHttpRequest, which implements the above mentioned interface, mapping setBody() to a set...
spring-web/src/test/java/org/springframework/http/client/AbstractHttpRequestFactoryTestCase.java
@@ -18,6 +18,7 @@ import java.io.IOException; import java.io.InputStream; +import java.io.OutputStream; import java.net.URI; import java.util.Arrays; import java.util.Enumeration; @@ -40,8 +41,10 @@ import org.junit.Test; import org.springframework.http.HttpMethod; import org.springframework.http.HttpStatus; ...
true
Other
spring-projects
spring-framework
14ab2c88cc512a92d82db1f8fbb22d53445c6aa2.json
Request streaming for Apache HttpClient - Added org.springframework.http.StreamingHttpOutputMessage, which allows for a settable request body (as opposed to an output stream). - Added http.client.HttpComponentsStreamingClientHttpRequest, which implements the above mentioned interface, mapping setBody() to a set...
spring-web/src/test/java/org/springframework/http/client/StreamingHttpComponentsClientHttpRequestFactoryTests.java
@@ -0,0 +1,40 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + ...
true
Other
spring-projects
spring-framework
83ea0fb9e043670f8153147c1a79026acfa98f54.json
Fix typo in ModelAndViewMethodReturnValueHandler This commit fixes a typo in the class-level Javadoc for ModelAndViewMethodReturnValueHandler. Issue: SPR-10650
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/ModelAndViewMethodReturnValueHandler.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,7 +30,7 @@ * * <p>If the return valu...
false
Other
spring-projects
spring-framework
dbc904b647a265fb2d267d3957f34e9606886a2a.json
Remove mavenLocal (was temporarily added)
build.gradle
@@ -313,7 +313,6 @@ project("spring-context") { jvmArgs = ["-disableassertions:org.aspectj.weaver.UnresolvedType"] // SPR-7989 } repositories { - mavenLocal() // temporary workaround for locally installed (latest) reactor maven { url 'http://repo.springsource.org/snapshot' } // reactor } } @@ -498,7 +497,...
false
Other
spring-projects
spring-framework
907e286e7703cf3e8c8e954774891b75d661e17d.json
Fix typos in HandlerAdapter
spring-webmvc/src/main/java/org/springframework/web/servlet/HandlerAdapter.java
@@ -1,5 +1,5 @@ /* - * Copyright 2002-2012 the original author or authors. + * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,24 +20,24 @@ import javax.servlet.http....
false
Other
spring-projects
spring-framework
2a559028ad91cfad0202d728726bffaef9eaa96f.json
Upgrade spring-websocket to Jetty 9.0.4
build.gradle
@@ -480,11 +480,11 @@ project("spring-websocket") { } optional("org.glassfish.tyrus:tyrus-websocket-core:1.0") optional("org.glassfish.tyrus:tyrus-container-servlet:1.0") - optional("org.eclipse.jetty:jetty-webapp:9.0.3.v20130506") { + optional("org.eclipse.jetty:jetty-webapp:9.0.4.v20130625") { exclude ...
true
Other
spring-projects
spring-framework
2a559028ad91cfad0202d728726bffaef9eaa96f.json
Upgrade spring-websocket to Jetty 9.0.4
spring-websocket/src/main/java/org/springframework/web/socket/server/support/JettyRequestUpgradeStrategy.java
@@ -24,8 +24,8 @@ import org.eclipse.jetty.websocket.api.UpgradeRequest; import org.eclipse.jetty.websocket.api.UpgradeResponse; import org.eclipse.jetty.websocket.server.HandshakeRFC6455; -import org.eclipse.jetty.websocket.server.ServletWebSocketRequest; import org.eclipse.jetty.websocket.server.WebSocketServerFa...
true
Other
spring-projects
spring-framework
8560582c405e03c6fd7206b7c1f177218f7b6aa9.json
Add messaging.channel package
build.gradle
@@ -301,6 +301,7 @@ project("spring-context") { optional("org.hibernate:hibernate-validator:4.3.0.Final") optional("org.aspectj:aspectjweaver:${aspectjVersion}") optional("org.apache.geronimo.specs:geronimo-jta_1.1_spec:1.1") + optional("reactor:reactor-core:1.0.0.BUILD-SNAPSHOT") testCompile("commons-dbcp...
true
Other
spring-projects
spring-framework
8560582c405e03c6fd7206b7c1f177218f7b6aa9.json
Add messaging.channel package
spring-context/src/main/java/org/springframework/messaging/channel/PublishSubscribeChannel.java
@@ -0,0 +1,101 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + ...
true
Other
spring-projects
spring-framework
8560582c405e03c6fd7206b7c1f177218f7b6aa9.json
Add messaging.channel package
spring-context/src/main/java/org/springframework/messaging/channel/ReactorMessageChannel.java
@@ -14,7 +14,7 @@ * limitations under the License. */ -package org.springframework.web.messaging.support; +package org.springframework.messaging.channel; import java.util.HashMap; import java.util.Map;
true
Other
spring-projects
spring-framework
8560582c405e03c6fd7206b7c1f177218f7b6aa9.json
Add messaging.channel package
spring-context/src/test/java/org/springframework/messaging/channel/PublishSubscibeChannelTests.java
@@ -0,0 +1,148 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + ...
true
Other
spring-projects
spring-framework
9dba73dfc90978a98e6d8d214fec107ff71018f4.json
Add ConversionService support for ByteBuffers Add ByteBufferConverter that is registered by default with the DefaultConversionService. Allows conversion from/to a ByteBuffer and byte[] or to any type that can be converted via a byte[]. Issue: SPR-10712
spring-core/src/main/java/org/springframework/core/convert/support/ByteBufferConverter.java
@@ -0,0 +1,114 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + ...
true
Other
spring-projects
spring-framework
9dba73dfc90978a98e6d8d214fec107ff71018f4.json
Add ConversionService support for ByteBuffers Add ByteBufferConverter that is registered by default with the DefaultConversionService. Allows conversion from/to a ByteBuffer and byte[] or to any type that can be converted via a byte[]. Issue: SPR-10712
spring-core/src/main/java/org/springframework/core/convert/support/DefaultConversionService.java
@@ -53,6 +53,7 @@ public DefaultConversionService() { public static void addDefaultConverters(ConverterRegistry converterRegistry) { addScalarConverters(converterRegistry); addCollectionConverters(converterRegistry); + addBinaryConverters(converterRegistry); addFallbackConverters(converterRegistry); } @...
true
Other
spring-projects
spring-framework
9dba73dfc90978a98e6d8d214fec107ff71018f4.json
Add ConversionService support for ByteBuffers Add ByteBufferConverter that is registered by default with the DefaultConversionService. Allows conversion from/to a ByteBuffer and byte[] or to any type that can be converted via a byte[]. Issue: SPR-10712
spring-core/src/test/java/org/springframework/core/convert/support/ByteBufferConverterTests.java
@@ -0,0 +1,109 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + ...
true
Other
spring-projects
spring-framework
e694cc16c72a5304e031ff144de340ebb72b93df.json
Consider original headers in pattern-based removal When headers are being removed based on pattern matching, both the new header names and the original header names need to be matched against the pattern. Previously, only new headers were being considered resulting in any matching original headers not being removed.
spring-context/src/main/java/org/springframework/messaging/support/MessageHeaderAccessor.java
@@ -142,11 +142,8 @@ public void removeHeaders(String... headerPatterns) { for (String pattern : headerPatterns) { if (StringUtils.hasLength(pattern)){ if (pattern.contains("*")){ - for (String headerName : this.headers.keySet()) { - if (PatternMatchUtils.simpleMatch(pattern, headerName)){ - ...
false
Other
spring-projects
spring-framework
98d70733704fd96b999e1664a6609e5191affc2d.json
Verify types when setting header When a header is being set, verify that the type that's provided is legal for the header that's been set. For example, the error channel's type must be a MessageChannel or a String. The method that performs type verification is protected so that it can be overriden by sub-classes. It ...
spring-context/src/main/java/org/springframework/messaging/support/MessageHeaderAccessor.java
@@ -113,6 +113,7 @@ else if (this.originalHeaders != null) { */ public void setHeader(String name, Object value) { Assert.isTrue(!isReadOnly(name), "The '" + name + "' header is read-only."); + verifyType(name, value); if (!ObjectUtils.nullSafeEquals(value, getHeader(name))) { this.headers.put(name, val...
false
Other
spring-projects
spring-framework
465fc7638f1736c3803c4893a080f0a7e92497da.json
Fix typo in MessageHeaderAccessor's class name Remove the extra 's' from the class name
spring-context/src/main/java/org/springframework/messaging/support/MessageBuilder.java
@@ -34,7 +34,7 @@ private final T payload; - private final MessageHeaderAccesssor headerAccessor; + private final MessageHeaderAccessor headerAccessor; private final Message<T> originalMessage; @@ -46,7 +46,7 @@ private MessageBuilder(T payload, Message<T> originalMessage) { Assert.notNull(payload, "payl...
true
Other
spring-projects
spring-framework
465fc7638f1736c3803c4893a080f0a7e92497da.json
Fix typo in MessageHeaderAccessor's class name Remove the extra 's' from the class name
spring-context/src/main/java/org/springframework/messaging/support/MessageHeaderAccessor.java
@@ -37,15 +37,15 @@ * A base class for read/write access to {@link MessageHeaders}. Supports creation of new * headers or modification of existing message headers. * <p> - * Sub-classes can provide additinoal typed getters and setters for convenient access to + * Sub-classes can provide additional typed getters a...
true
Other
spring-projects
spring-framework
465fc7638f1736c3803c4893a080f0a7e92497da.json
Fix typo in MessageHeaderAccessor's class name Remove the extra 's' from the class name
spring-context/src/main/java/org/springframework/messaging/support/NativeMessageHeaderAccessor.java
@@ -28,14 +28,14 @@ /** - * An extension of {@link MessageHeaderAccesssor} that also provides read/write access to + * An extension of {@link MessageHeaderAccessor} that also provides read/write access to * message headers from an external message source. Native message headers are kept * in a {@link MultiValu...
true
Other
spring-projects
spring-framework
486b4101ec6675a53c1595350878a10857518331.json
Introduce MessageHeader accessor types A new type MessageHeaderAccesssor provides read/write access to MessageHeaders along with typed getter/setter methods along the lines of the existing MessageBuilder methods (internally MessageBuilder merely delegates to MessageHeaderAccessor). This class is extensible with sub-cl...
build.gradle
@@ -490,7 +490,7 @@ project("spring-websocket") { repositories { maven { url "https://repository.apache.org/content/repositories/snapshots" } // tomcat-websocket-* snapshots maven { url "https://maven.java.net/content/repositories/releases" } // javax.websocket, tyrus - mavenLocal() // temporary workaround ...
true
Other
spring-projects
spring-framework
486b4101ec6675a53c1595350878a10857518331.json
Introduce MessageHeader accessor types A new type MessageHeaderAccesssor provides read/write access to MessageHeaders along with typed getter/setter methods along the lines of the existing MessageBuilder methods (internally MessageBuilder merely delegates to MessageHeaderAccessor). This class is extensible with sub-cl...
spring-context/src/main/java/org/springframework/messaging/MessageHeaders.java
@@ -35,8 +35,8 @@ /** * The headers for a {@link Message}.<br> - * IMPORTANT: MessageHeaders are immutable. Any mutating operation (e.g., put(..), putAll(..) etc.) - * will result in {@link UnsupportedOperationException} + * IMPORTANT: This class is immutable. Any mutating operation (e.g., put(..), putAll(..) etc....
true
Other
spring-projects
spring-framework
486b4101ec6675a53c1595350878a10857518331.json
Introduce MessageHeader accessor types A new type MessageHeaderAccesssor provides read/write access to MessageHeaders along with typed getter/setter methods along the lines of the existing MessageBuilder methods (internally MessageBuilder merely delegates to MessageHeaderAccessor). This class is extensible with sub-cl...
spring-context/src/main/java/org/springframework/messaging/support/GenericMessage.java
@@ -66,15 +66,11 @@ protected GenericMessage(T payload, Map<String, Object> headers) { else { headers = new HashMap<String, Object>(headers); } - this.headers = createMessageHeaders(headers); + this.headers = new MessageHeaders(headers); this.payload = payload; } - protected MessageHeaders createMe...
true
Other
spring-projects
spring-framework
486b4101ec6675a53c1595350878a10857518331.json
Introduce MessageHeader accessor types A new type MessageHeaderAccesssor provides read/write access to MessageHeaders along with typed getter/setter methods along the lines of the existing MessageBuilder methods (internally MessageBuilder merely delegates to MessageHeaderAccessor). This class is extensible with sub-cl...
spring-context/src/main/java/org/springframework/messaging/support/MessageBuilder.java
@@ -16,41 +16,28 @@ package org.springframework.messaging.support; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.Date; -import java.util.HashMap; -import java.util.List; import java.util.Map; -import java.util.Set; -import java.util.UUID; import org.spr...
true
Other
spring-projects
spring-framework
486b4101ec6675a53c1595350878a10857518331.json
Introduce MessageHeader accessor types A new type MessageHeaderAccesssor provides read/write access to MessageHeaders along with typed getter/setter methods along the lines of the existing MessageBuilder methods (internally MessageBuilder merely delegates to MessageHeaderAccessor). This class is extensible with sub-cl...
spring-context/src/main/java/org/springframework/messaging/support/MessageHeaderAccesssor.java
@@ -0,0 +1,219 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + ...
true
Other
spring-projects
spring-framework
486b4101ec6675a53c1595350878a10857518331.json
Introduce MessageHeader accessor types A new type MessageHeaderAccesssor provides read/write access to MessageHeaders along with typed getter/setter methods along the lines of the existing MessageBuilder methods (internally MessageBuilder merely delegates to MessageHeaderAccessor). This class is extensible with sub-cl...
spring-context/src/main/java/org/springframework/messaging/support/NativeMessageHeaderAccessor.java
@@ -0,0 +1,140 @@ +/* + * Copyright 2002-2013 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + ...
true
Other
spring-projects
spring-framework
486b4101ec6675a53c1595350878a10857518331.json
Introduce MessageHeader accessor types A new type MessageHeaderAccesssor provides read/write access to MessageHeaders along with typed getter/setter methods along the lines of the existing MessageBuilder methods (internally MessageBuilder merely delegates to MessageHeaderAccessor). This class is extensible with sub-cl...
spring-websocket/src/main/java/org/springframework/web/messaging/service/AbstractPubSubMessageHandler.java
@@ -30,7 +30,7 @@ import org.springframework.util.CollectionUtils; import org.springframework.util.PathMatcher; import org.springframework.web.messaging.MessageType; -import org.springframework.web.messaging.support.PubSubHeaderAccesssor; +import org.springframework.web.messaging.support.WebMessageHeaderAccesssor; ...
true
Other
spring-projects
spring-framework
486b4101ec6675a53c1595350878a10857518331.json
Introduce MessageHeader accessor types A new type MessageHeaderAccesssor provides read/write access to MessageHeaders along with typed getter/setter methods along the lines of the existing MessageBuilder methods (internally MessageBuilder merely delegates to MessageHeaderAccessor). This class is extensible with sub-cl...
spring-websocket/src/main/java/org/springframework/web/messaging/service/ReactorPubSubMessageHandler.java
@@ -31,7 +31,7 @@ import org.springframework.web.messaging.PubSubChannelRegistry; import org.springframework.web.messaging.converter.CompositeMessageConverter; import org.springframework.web.messaging.converter.MessageConverter; -import org.springframework.web.messaging.support.PubSubHeaderAccesssor; +import org.spr...
true
Other
spring-projects
spring-framework
486b4101ec6675a53c1595350878a10857518331.json
Introduce MessageHeader accessor types A new type MessageHeaderAccesssor provides read/write access to MessageHeaders along with typed getter/setter methods along the lines of the existing MessageBuilder methods (internally MessageBuilder merely delegates to MessageHeaderAccessor). This class is extensible with sub-cl...
spring-websocket/src/main/java/org/springframework/web/messaging/service/method/AnnotationPubSubMessageHandler.java
@@ -45,7 +45,7 @@ import org.springframework.web.messaging.converter.MessageConverter; import org.springframework.web.messaging.service.AbstractPubSubMessageHandler; import org.springframework.web.messaging.support.MessageHolder; -import org.springframework.web.messaging.support.PubSubHeaderAccesssor; +import org.sp...
true
Other
spring-projects
spring-framework
486b4101ec6675a53c1595350878a10857518331.json
Introduce MessageHeader accessor types A new type MessageHeaderAccesssor provides read/write access to MessageHeaders along with typed getter/setter methods along the lines of the existing MessageBuilder methods (internally MessageBuilder merely delegates to MessageHeaderAccessor). This class is extensible with sub-cl...
spring-websocket/src/main/java/org/springframework/web/messaging/service/method/MessageBodyArgumentResolver.java
@@ -25,7 +25,7 @@ import org.springframework.web.messaging.converter.CompositeMessageConverter; import org.springframework.web.messaging.converter.MessageConversionException; import org.springframework.web.messaging.converter.MessageConverter; -import org.springframework.web.messaging.support.PubSubHeaderAccesssor; ...
true