Nightly 362 produces scala compile errors on Java only project

With the scala plug-in installed and a Java only project open, I get compile errors like those below. Disabling scala plugin fixes the problem.

Information:Compilation completed with 27 errors and 58 warnings in 37 sec
Information:27 errors
Information:58 warnings
Error:scala: /Users/curtis/idea/synergy/head/synergyweb/src/com/guildone/synergyweb/synio/client/validation/HasValueValidator.java:20: illegal start of type
Error:scala:  return new HasValueValidator<>(w, action, vs);
Error:scala:                               ^
Error:scala: /Users/curtis/idea/synergy/head/synergyweb/src/com/guildone/synergyweb/synio/client/validation/HasValueValidator.java:26: illegal start of type
Error:scala:  validations = new ArrayList<>();
Error:scala:                              ^
Error:scala: 2 errors
Error:scala: /Users/curtis/idea/synergy/head/synergyadmin/src/com/guildone/admin/gui/change/SingleChangeDetector.java:14: error: package com.sun.istack.internal does not exist
Error:scala: import com.sun.istack.internal.NotNull;
Error:scala:                               ^
Error:scala: /Users/curtis/idea/synergy/head/synergyadmin/src/com/guildone/admin/gui/change/SingleChangeDetector.java:22: error: cannot find symbol
Error:scala:  public static <T> SingleChangeDetector<T> of(@NotNull Property<T> value) {
Error:scala:                                                ^
Error:scala:   symbol:   class NotNull
Error:scala:   location: class SingleChangeDetector<T>
Error:scala:   where T is a type-variable:
Error:scala:     T extends Object declared in class SingleChangeDetector
Error:scala: /Users/curtis/idea/synergy/head/synergyadmin/src/com/guildone/admin/gui/change/SingleChangeDetector.java:26: error: cannot find symbol
Error:scala:  protected SingleChangeDetector(@NotNull final Property<T> value) {
Error:scala:                                  ^
Error:scala: /Users/curtis/idea/synergy/head/synergyadmin/src/com/guildone/admin/RestURIProvider.java:33: warning: non-varargs call of varargs method with inexact argument type for last parameter;
Error:scala:  return MessageFormat.format(rest.getString(resourceLabel), arguments);
Error:scala:                                                             ^
Error:scala:   cast to Object for a varargs call
Error:scala:   cast to Object[] for a non-varargs call and to suppress this warning
Error:scala: 3 errors
Error:scala: 1 warning
Warning:scala: /Users/curtis/idea/synergy/head/synergy/shared/src/com/guildone/synergy/shared/dataaction/exec/Base64Encode.java:14: warning: BASE64Decoder is internal proprietary API and may be removed in a future release
Warning:scala: import sun.misc.BASE64Decoder;
Warning:scala:                ^
Warning:scala: /Users/curtis/idea/synergy/head/synergy/shared/src/com/guildone/synergy/shared/dataaction/exec/Base64Encode.java:15: warning: BASE64Encoder is internal proprietary API and may be removed in a future release
Warning:scala: import sun.misc.BASE64Encoder;
Warning:scala: /Users/curtis/idea/synergy/head/synergy/shared/src/com/guildone/synergy/shared/mapping/syn2d/Syn2DIO.java:19: warning: AppContext is internal proprietary API and may be removed in a future release
Warning:scala: import sun.awt.AppContext;
Warning:scala:               ^
Warning:scala: /Users/curtis/idea/synergy/head/synergy/shared/src/com/guildone/synergy/shared/util/ADUtils.java:21: warning: CommunicationException is internal proprietary API and may be removed in a future release
Warning:scala: import com.sun.jmx.snmp.daemon.CommunicationException;
Warning:scala:                               ^
Warning:scala: /Users/curtis/idea/synergy/head/synergy/shared/src/com/guildone/synergy/shared/util/ImagePropsSerializer.java:6: warning: AppContext is internal proprietary API and may be removed in a future release
Warning:scala: /Users/curtis/idea/synergy/head/synergy/shared/src/com/guildone/synergy/shared/util/XSLUtils.java:18: warning: BASE64Encoder is internal proprietary API and may be removed in a future release
Warning:scala: /Users/curtis/idea/synergy/head/synergy/shared/src/com/guildone/synergy/shared/dataaction/exec/Base64Encode.java:34: warning: BASE64Encoder is internal proprietary API and may be removed in a future release
Warning:scala:  BASE64Encoder encoder = new BASE64Encoder();
Warning:scala:  ^
Warning:scala:                              ^
Warning:scala: /Users/curtis/idea/synergy/head/synergy/shared/src/com/guildone/synergy/shared/dataaction/exec/Base64Encode.java:39: warning: BASE64Decoder is internal proprietary API and may be removed in a future release
Warning:scala:  BASE64Decoder decoder = new BASE64Decoder();
Warning:scala: /Users/curtis/idea/synergy/head/synergy/shared/src/com/guildone/synergy/shared/mapping/syn2d/Syn2DIO.java:458: warning: AppContext is internal proprietary API and may be removed in a future release
Warning:scala:       final AppContext ac = AppContext.getAppContext();
Warning:scala:             ^
Warning:scala:                             ^
Warning:scala: /Users/curtis/idea/synergy/head/synergy/shared/src/com/guildone/synergy/shared/util/ImagePropsSerializer.java:98: warning: AppContext is internal proprietary API and may be removed in a future release
Warning:scala: /Users/curtis/idea/synergy/head/synergy/shared/src/com/guildone/synergy/shared/util/XSLUtils.java:113: warning: BASE64Encoder is internal proprietary API and may be removed in a future release
Warning:scala:  BASE64Encoder be = new BASE64Encoder();
Warning:scala:  ^
Warning:scala:                         ^
Warning:scala: Note: /Users/curtis/idea/synergy/head/synergy/shared/src/com/guildone/synergy/shared/dataaction/DefaultDataActionResult.java uses unchecked or unsafe operations.
Warning:scala: Note: Recompile with -Xlint:unchecked for details.
Warning:scala: 16 warnings
Warning:scala: /Users/curtis/idea/synergy/head/synergy/server/src/com/guildone/synergy/server/web/servlets/ServletUtils.java:24: warning: BASE64Decoder is internal proprietary API and may be removed in a future release
Warning:scala: /Users/curtis/idea/synergy/head/synergy/server/src/com/guildone/synergy/server/web/servlets/ServletUtils.java:73: warning: BASE64Decoder is internal proprietary API and may be removed in a future release
Warning:scala:  BASE64Decoder dec = new BASE64Decoder();
Warning:scala:  ^
Warning:scala:                          ^
Warning:scala: Note: /Users/curtis/idea/synergy/head/synergy/server/src/com/guildone/synergy/server/util/AutoRowMapper.java uses unchecked or unsafe operations.
Warning:scala: 3 warnings
Warning:scala: /Users/curtis/idea/synergy/head/synergy/client/src/com/guildone/synergy/client/adhoc/POITreeExporter.java:24: warning: BASE64Encoder is internal proprietary API and may be removed in a future release
Warning:scala: /Users/curtis/idea/synergy/head/synergy/client/src/com/guildone/synergy/client/gui/SynGoFile.java:27: warning: DOMParser is internal proprietary API and may be removed in a future release
Warning:scala: import com.sun.org.apache.xerces.internal.parsers.DOMParser;
Warning:scala:                                                  ^
Warning:scala: /Users/curtis/idea/synergy/head/synergy/client/src/com/guildone/synergy/client/xsl/JFreeChartToImage.java:12: warning: BASE64Encoder is internal proprietary API and may be removed in a future release
Warning:scala: warning: Supported source version 'RELEASE_6' from annotation processor 'org.netbeans.modules.openide.util.ServiceProviderProcessor' less than -source '1.7'
Warning:scala: warning: Supported source version 'RELEASE_6' from annotation processor 'org.netbeans.modules.openide.util.NbBundleProcessor' less than -source '1.7'
Warning:scala: warning: Supported source version 'RELEASE_6' from annotation processor 'org.netbeans.modules.openide.util.URLStreamHandlerRegistrationProcessor' less than -source '1.7'
Warning:scala: /Users/curtis/idea/synergy/head/synergy/client/src/com/guildone/synergy/client/adhoc/POITreeExporter.java:295: warning: BASE64Encoder is internal proprietary API and may be removed in a future release
Warning:scala:  + new BASE64Encoder().encode(authString
Warning:scala:        ^
Warning:scala: /Users/curtis/idea/synergy/head/synergy/client/src/com/guildone/synergy/client/gui/SynGoFile.java:62: warning: DOMParser is internal proprietary API and may be removed in a future release
Warning:scala:  DOMParser parser = new DOMParser();
Warning:scala: /Users/curtis/idea/synergy/head/synergy/client/src/com/guildone/synergy/client/gui/SynGoFile.java:108: warning: DOMParser is internal proprietary API and may be removed in a future release
Warning:scala: /Users/curtis/idea/synergy/head/synergy/client/src/com/guildone/synergy/client/xsl/JFreeChartToImage.java:71: warning: BASE64Encoder is internal proprietary API and may be removed in a future release
Warning:scala:         BASE64Encoder be = new BASE64Encoder();
Warning:scala:         ^
Warning:scala:                                ^
Warning:scala: Note: Some input files use unchecked or unsafe operations.
Warning:scala: 19 warnings

4 comments
Comment actions Permalink

It's probably fixed in build 367 (one more workaround is to disable external compiler for Java only project).

Best regards,
Alexander Podkhalyuzin.

0
Comment actions Permalink

Same problem in 367

0
Comment actions Permalink

370 has fixed it. Thank you!

0
Comment actions Permalink

Please, try to use the newest Scala plugin build (0.6.370):
http://plugins.intellij.net/plugin/?idea&id=1347

0

Please sign in to leave a comment.