changeset 522:3b57fecd61bf

Regression: Default package check should work.
author shade
date Tue, 01 Apr 2014 21:53:13 +0400
parents 1301db7556b4
children 51b58ae85606
files jmh-core/src/main/java/org/openjdk/jmh/generators/core/BenchmarkGenerator.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/generators/core/BenchmarkGenerator.java	Tue Apr 01 20:51:15 2014 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/generators/core/BenchmarkGenerator.java	Tue Apr 01 21:53:13 2014 +0400
@@ -213,7 +213,7 @@
      * Do basic benchmark validation.
      */
     private void validateBenchmark(ClassInfo clazz, Collection<MethodInfo> methods) {
-        if (clazz.getQualifiedName().isEmpty()) {
+        if (clazz.getPackageName().isEmpty()) {
             throw new GenerationException("Microbenchmark should have package other than default.", clazz);
         }