Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9185217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:13:59+00:00 2026-06-17T19:13:59+00:00

Where does Eclipse Juno print the messages that the following annotation processor, ComplexityProcessor ,

  • 0

Where does Eclipse Juno print the messages that the following annotation processor, ComplexityProcessor, outputs when it compiles class SimpleAnnotationTest? After compilation, I expect to see the messages in the Console pane, but it is empty.

public @interface Complexity
{
    public enum Level
    {
        VERY_SIMPLE,
        SIMPLE,
        MEDIUM,
        COMPLEX,
        VERY_COMPLEX;
    }

    Level value() default Level.MEDIUM;
}

@SupportedAnnotationTypes("com.intelerad.annotations.Complexity")
@SupportedSourceVersion(SourceVersion.RELEASE_6)
public class ComplexityProcessor extends AbstractProcessor
{
    @Override
    public boolean process( final Set<? extends TypeElement> annotations,
                            final RoundEnvironment environment )
    {
        for ( final Element element : environment.getElementsAnnotatedWith( Complexity.class ) )
        {
            final Complexity complexity = element.getAnnotation( Complexity.class );
            String message =
                "Annotation found in " + element.getSimpleName() + " with complexity " +
                complexity.value();

            // Where does Eclipse print this message?
            processingEnv.getMessager().printMessage( Diagnostic.Kind.NOTE, message );
        }
        return true;
    }
}

@Complexity(Level.VERY_SIMPLE)
public class SimpleAnnotationTest
{
    @Complexity()
    public void theMethod()
    {
        System.out.println( "console output" );
    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T19:14:00+00:00Added an answer on June 17, 2026 at 7:14 pm

    I found the output in the Eclipse .metadata/.log:

    !ENTRY org.eclipse.jdt.apt.pluggable.core 1 1 2013-01-23 16:45:35.102
    !MESSAGE Annotation found in SimpleAnnotationTest with complexity VERY_SIMPLE
    
    !ENTRY org.eclipse.jdt.apt.pluggable.core 1 1 2013-01-23 16:45:35.102
    !MESSAGE Annotation found in theMethod with complexity MEDIUM
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After updating to Eclipse Juno I found that it intermittently freezes when I change
I'm using the latest Eclipse Juno to develop Android applications. My problem is that
I installed Eclipse Juno and key binding does not seems to be working well.
Does anyone know how to repair/clean install eclipse? My version of Eclipse Juno with
After upgrading to Eclipse Juno and importing an existing Java EE project, the Tasks
I updated to Eclipse Juno 4.2 and I discovered that some custom shortcuts I
I would like to use the new @NonNull annotation from Eclipse Juno but the
Does Eclipse have a feature that lets you search a project to find all
Does Eclipse have an analog to Visual Studio's Immediate Window, a window where I
Why does eclipse break with the error Could not write file: M:\workspaces\eclipse\project.project. M:\workspaces\eclipse\project.project (Access

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.