changeset 299:60753aab06cf

More humane error message about inner/nested classes for @State.
author shade
date Wed, 04 Dec 2013 21:35:55 +0400
parents f39c77f5b84a
children 83b404ab30db
files jmh-core/src/main/java/org/openjdk/jmh/processor/internal/GenerateMicroBenchmarkProcessor.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/processor/internal/GenerateMicroBenchmarkProcessor.java	Wed Dec 04 21:12:49 2013 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/processor/internal/GenerateMicroBenchmarkProcessor.java	Wed Dec 04 21:35:55 2013 +0400
@@ -417,7 +417,7 @@
         if (type.getNestingKind().isNested() && !type.getModifiers().contains(Modifier.STATIC)) {
             throw new GenerationException(
                     "The " + State.class.getSimpleName()
-                            + " annotation does not support inner classes, "
+                            + " annotation does not support inner classes, make sure the class is nested (static), "
                             + type,
                     type);
         }