Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wonder Build fails when compiled using javac1.8 and compiler source 1.8 and target 1.8 #615

Closed
ijazfx opened this issue Nov 7, 2014 · 0 comments

Comments

@ijazfx
Copy link
Contributor

ijazfx commented 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.

ijazfx pushed a commit to ijazfx/wonder that referenced this issue Nov 7, 2014
ijazfx pushed a commit to ijazfx/wonder that referenced this issue Nov 7, 2014
@ijazfx ijazfx closed this as completed Nov 7, 2014
darkv added a commit that referenced this issue Nov 24, 2014
billchin pushed a commit to billchin/wonder that referenced this issue Nov 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant