dsap15 / spring-data-redis

Provides support to increase developer productivity in Java when using Redis, a key-value store. Uses familiar Spring concepts such as a template classes for core API usage and lightweight repository style data access.
http://projects.spring.io/spring-data/
Apache License 2.0
0 stars 0 forks source link

Compiler error when introducing a ""final"" field" #3

Open dsap15 opened 2 years ago

dsap15 commented 2 years ago

The aspect below fails to compile with 1.1b2, producing the compilation error: -------------------- $ ajc com/ibm/amc/.java com/ibm/amc/ejb/.java d:/eclipse/runtime-workspace-ajsamples/Mock EJBs/com/ibm/amc/DemoBeanEJB.java:1: Cannot assign a value to the final field com.ibm.amc.DemoBean.ajc$interField$co m_ibm_amc$verbose !! no source information available !! 1 error --------------------------- package com.ibm.amc; import com.ibm.amc.ejb.SessionBean; /* https://github.com/author colyer To change this generated comment edit the template variable "typecomment": Window Preferences Java Templates. To enable and disable the creation of type comments go to Window Preferences Java Code Generation. / public aspect DemoBeanEJB { declare parents: DemoBean implements SessionBean; // THIS NEXT LINE IS THE CULPRIT static final boolean DemoBean.verbose = true; private transient String DemoBean.ctx; public void DemoBean.ejbActivate( ) { if ( verbose ) { System.out.println( "ejbActivate Called" ); } } } ------------------- Making the inter-type declaration non-final solves the problem...

github-actions[bot] commented 2 years ago

Locus suggests these are the commits that most likely caused the bug: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">