Daily Archives: March 12, 2008

NB6: error on “illegal reference to static field” solved

Easy solution (even though it still appears the old way is legal code): move the initializer code into a static method. Instead of: private static Map byDBValue; private AssetImporterTypeEnum(String dbvalue) { this.dbValue = dbvalue; if (AssetImporterTypeEnum.byDBValue == null) { AssetImporterTypeEnum.byDBValue … Continue reading

  • Share/Bookmark
Posted in Java, Programming, Technology | Leave a comment