1.1 --- a/src/share/jaxws_classes/com/sun/org/glassfish/external/statistics/impl/RangeStatisticImpl.java Thu Aug 08 10:10:38 2013 -0700 1.2 +++ b/src/share/jaxws_classes/com/sun/org/glassfish/external/statistics/impl/RangeStatisticImpl.java Fri Aug 23 09:57:21 2013 +0100 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -27,7 +27,6 @@ 1.11 1.12 package com.sun.org.glassfish.external.statistics.impl; 1.13 import com.sun.org.glassfish.external.statistics.RangeStatistic; 1.14 -import java.util.concurrent.atomic.AtomicLong; 1.15 import java.util.Map; 1.16 import java.lang.reflect.*; 1.17 1.18 @@ -125,6 +124,8 @@ 1.19 1.20 // todo: equals implementation 1.21 public Object invoke(Object proxy, Method m, Object[] args) throws Throwable { 1.22 + checkMethod(m); 1.23 + 1.24 Object result; 1.25 try { 1.26 result = m.invoke(this, args); 1.27 @@ -133,7 +134,6 @@ 1.28 } catch (Exception e) { 1.29 throw new RuntimeException("unexpected invocation exception: " + 1.30 e.getMessage()); 1.31 - } finally { 1.32 } 1.33 return result; 1.34 }