7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /**
25 * @test
26 * @bug 6537506
27 * @summary Basic unit test for tracing framework
28 */
29
30 import com.sun.tracing.*;
31 import java.lang.reflect.Method;
32
33 @ProviderName("NamedProvider")
34 interface BasicProvider extends Provider {
35 void plainProbe();
36 void probeWithArgs(int a, float f, String s, Long l);
37 @ProbeName("namedProbe") void probeWithName();
38 void overloadedProbe();
39 void overloadedProbe(int i);
40 }
41
42 interface InvalidProvider extends Provider {
43 int nonVoidProbe();
44 }
45
46 public class BasicFunctionality {
|
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /**
25 * @test
26 * @bug 6537506
27 * @ignore 6962535
28 * @summary Basic unit test for tracing framework
29 */
30
31 import com.sun.tracing.*;
32 import java.lang.reflect.Method;
33
34 @ProviderName("NamedProvider")
35 interface BasicProvider extends Provider {
36 void plainProbe();
37 void probeWithArgs(int a, float f, String s, Long l);
38 @ProbeName("namedProbe") void probeWithName();
39 void overloadedProbe();
40 void overloadedProbe(int i);
41 }
42
43 interface InvalidProvider extends Provider {
44 int nonVoidProbe();
45 }
46
47 public class BasicFunctionality {
|