1 /*
2 * $Id: IllegalAnnotatedComponent.java 18562 2010-07-26 00:33:32Z rossmason $
3 * -------------------------------------------------------------------------------------
4 * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com
5 *
6 * The software in this package is published under the terms of the CPAL v1.0
7 * license, a copy of which has been included with this distribution in the
8 * LICENSE.txt file.
9 */
10 package org.mule.module.json.config;
11
12 import org.mule.api.annotations.expression.JsonPath;
13
14 import java.util.Map;
15
16 public class IllegalAnnotatedComponent
17 {
18 public Map<String, Object> doStuff3(
19 @JsonPath("/foo/bar[1]") Exception bar)
20 {
21 //this will fail since you cannot return an integer from an XPath expression
22 return null;
23 }
24 }