You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to upgrade my projects to java 1.8. The first thing I needed to do is to compile the wonder frameworks against java 1.8. When I do that, I get following error:
global.dummy:
[wocompile] Compiling 2 source files to /Users/fijaz/Roots/classes/ERExtensions
[wocompile] warning: [options] bootstrap class path not set in conjunction with -source 1.6
[wocompile] /Users/fijaz/git-repos/ijazfx/wonder/Frameworks/Core/ERExtensions/Sources/er/extensions/components/ERXCachingWrapper.java:71: error: cannot find symbol
[wocompile] if(!result.isActive()) {
[wocompile] ^
[wocompile] symbol: method isActive()
[wocompile] location: variable result of type Entry
[wocompile] Note: Some input files use unchecked or unsafe operations.
[wocompile] Note: Recompile with -Xlint:unchecked for details.
[wocompile] 1 error
[wocompile] 1 warning
This is because the Entry class conflicts with Java8's Map.Entry class which does not have isActive() method. To fix this we need to rename the local Entry class to something else like CacheEntry.
The text was updated successfully, but these errors were encountered:
ijazfx
pushed a commit
to ijazfx/wonder
that referenced
this issue
Nov 7, 2014
I need to upgrade my projects to java 1.8. The first thing I needed to do is to compile the wonder frameworks against java 1.8. When I do that, I get following error:
global.dummy:
[wocompile] Compiling 2 source files to /Users/fijaz/Roots/classes/ERExtensions
[wocompile] warning: [options] bootstrap class path not set in conjunction with -source 1.6
[wocompile] /Users/fijaz/git-repos/ijazfx/wonder/Frameworks/Core/ERExtensions/Sources/er/extensions/components/ERXCachingWrapper.java:71: error: cannot find symbol
[wocompile] if(!result.isActive()) {
[wocompile] ^
[wocompile] symbol: method isActive()
[wocompile] location: variable result of type Entry
[wocompile] Note: Some input files use unchecked or unsafe operations.
[wocompile] Note: Recompile with -Xlint:unchecked for details.
[wocompile] 1 error
[wocompile] 1 warning
This is because the Entry class conflicts with Java8's Map.Entry class which does not have isActive() method. To fix this we need to rename the local Entry class to something else like CacheEntry.
The text was updated successfully, but these errors were encountered: