Windsurf deployment

Cascade Generated Annotation Not Recognized

Custom annotations Cascade generated are not being recognized at runtime. Annotations are present in code but the reflection/annotation processing doesn't find them. This breaks aspect-oriented features, validation, or custom framework logic that depends on annotations.

Cascade likely used incorrect annotation configuration or retention policy.

Error Messages You Might See

Annotation not found at runtime getAnnotation() returns null Custom annotation ignored by framework Aspect not triggered for annotated method

Common Causes

  1. Cascade set @Retention(RetentionPolicy.SOURCE) instead of RUNTIME
  2. Annotation missing @Target specifying valid targets (METHOD, FIELD, TYPE, etc.)
  3. Reflection code looks for different annotation name than generated

How to Fix It

Check annotation definition has @Retention(RetentionPolicy.RUNTIME) so it's available at runtime. Verify @Target includes appropriate targets (METHOD for methods, FIELD for fields, etc.). Use Java reflection to verify annotation exists: method.getAnnotation(CustomAnnotation.class) should not be null. Check if annotation processor actually ran during compilation.

Real developers can help you.

Jen Jacobsen Jen Jacobsen I’m a Full-Stack Developer with over 10 years of experience building modern web and mobile applications. I enjoy working across the full product lifecycle — turning ideas into real, well-built products that are intuitive for users and scalable for businesses. I particularly enjoy building mobile apps, modern web platforms, and solving complex technical problems in a way that keeps systems clean, reliable, and easy to maintain. Luca Liberati Luca Liberati I work on monoliths and microservices, backends and frontends, manage K8s clusters and love to design apps architecture Taufan Taufan I’m a product-focused engineer and tech leader who builds scalable systems and turns ideas into production-ready platforms. Over the past years, I’ve worked across startups and fast-moving teams, leading backend architecture, improving system reliability, and shipping products used by thousands of users. My strength is not just writing code — but connecting product vision, technical execution, and business impact. Richard McSorley Richard McSorley Full-Stack Software Engineer with 8+ years building high-performance applications for enterprise clients. Shipped production systems at Walmart (4,000+ stores), Cigna (20M+ users), and Arkansas Blue Cross. 5 patents in retail/supply chain tech. Currently focused on AI integrations, automation tools, and TypeScript-first architectures. Sage Fulcher Sage Fulcher Hey I'm Sage! Im a Boston area software engineer who grew up in South Florida. Ive worked at a ton of cool places like a telehealth kidney care startup that took part in a billion dollar merger (Cricket health/Interwell health), a boutique design agency where I got to work on a ton of exciting startups including a photography education app, a collegiate Esports league and more (Philosophie), a data analytics as a service startup in Cambridge (MA) as well as at Phillips and MIT Lincoln Lab where I designed and developed novel network security visualizations and analytics. I've been writing code and furiously devoted to using computers to make people’s lives easier for about 17 years. My degree is in making computers make pretty lights and sounds. Outside of work I love hip hop, the Celtics, professional wrestling, magic the gathering, photography, drumming, and guitars (both making and playing them) Franck Plazanet Franck Plazanet I am a Strategic Engineering Leader with over 8 years of experience building high-availability enterprise systems and scaling high-performing technical teams. My focus is on bridging the gap between complex technology and business growth. Core Expertise: 🚀 Leadership: Managing and coaching teams of 15+ engineers, fostering a culture of accountability and continuous improvement. 🏗️ Architecture: Enterprise Core Systems, Multi-system Integration (ERP/API/ETL), and Core Database Structure. ☁️ Cloud & Scale: AWS Expert; architected systems handling 10B+ monthly requests and managing 100k+ SKUs. 📈 Business Impact: Aligning tech strategy with P&L goals to drive $70k+ in monthly recurring revenue. I thrive on "out-of-the-box" thinking to solve complex technical bottlenecks and am always looking for ways to use automation to improve business productivity. Stanislav Prigodich Stanislav Prigodich 15+ years building iOS and web apps at startups and enterprise companies. I want to use that experience to help builders ship real products - when something breaks, I'm here to fix it. MFox MFox Full-stack professional senior engineer (15+years). Extensive experience in software development, qa, and IP networking. Nam Tran Nam Tran 10 years as fullstack developer Antriksh Narang Antriksh Narang 5 years+ Experienced Dev (Specially in Web Development), can help in python, javascript, react, next.js and full stack web dev technologies.

You don't need to be technical. Just describe what's wrong and a verified developer will handle the rest.

Get Help

Frequently Asked Questions

How do I make annotation available at runtime?

Use @Retention(RetentionPolicy.RUNTIME) on annotation definition.

How do I find annotations with reflection?

Use method.getAnnotation(MyAnnotation.class) or method.getDeclaredAnnotations() to list all.

Related Windsurf Issues

Can't fix it yourself?
Real developers can help.

You don't need to be technical. Just describe what's wrong and a verified developer will handle the rest.

Get Help