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 877823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T11:40:28+00:00 2026-05-15T11:40:28+00:00

I want to define a few annotations that will allow extra warnings/errors to be

  • 0

I want to define a few annotations that will allow extra warnings/errors to be reported during compilation (similar in concept to the @Nullable and @NotNull annotations in IntelliJ).

I would like to be able to write some compiler hooks that will also add my compilation logic based on those attributes.

I want a generic hook if possible, however since we are using Eclipse – it would also be a benefit if we had that ability.

I’d like to know:

  1. Is it possible? (any of the options above)
  2. Where do I start?
  3. I had little experience with annotations so far, so if I’m going about this the wrong way – I’d like to know that and if possible get a better direction to go with.

Thanks.

  • 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-05-15T11:40:29+00:00Added an answer on May 15, 2026 at 11:40 am

    You can use the Java Annotation Processor (see JSR 269: Pluggable Annotation Processing API) for that. From Annotation checking at compile time with Java Annotation Processor:

    The JSR 269 states that you can
    implement a plug-in for the compiler
    which can handle the annotations. This
    plug-in can be given as parameter at
    compile time, so your code will be
    called when one of your annotation
    appears in source code.

    The mentioned link provides an example that will get you started.

    See also:

    • Annotation Processing Tool (apt)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 497k
  • Answers 497k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Something like this: UPDATE TABLE SET ... FROM Table1, Table2… May 16, 2026 at 11:51 am
  • Editorial Team
    Editorial Team added an answer Take a look at Selenium. It allows you to script… May 16, 2026 at 11:51 am
  • Editorial Team
    Editorial Team added an answer In phadej's answer the transformation between the old and new… May 16, 2026 at 11:51 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I want to define one protocol with few properties and need to use those
I want to define a constant that should be available in all of the
I have a few styles that I want to apply to a slider. I'm
I want to define a constant inside a function that could be used outside
Edit--@Uri correctly pointed out that this was an abuse of annotations; trying to actually
I'm making a class that initializes instances of certain classes. This class will be
I want to define control styles in a resource dictionary and use those for
I have an abstract base class and I want to declare a field or
I have a stack panel with a few (different) items: <StackPanel ...> <TextBlock ...
At our company, we use a base ant file that is included by everyone

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.