metaborg / spoofax-intellij

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Character encoding issue of © character within copyright statements

msteindorfer opened this issue · comments

After cloning the repository and running ./gradlew runIde with Java JDK 9.0.4 I'm getting build errors of the following kind:

.../spoofax-intellij/org.metaborg.jps/src/main/java/org/metaborg/intellij/jps/package-info.java:2: error: unmappable character (0xC2) for encoding US-ASCII
 * Copyright ?? 2015-2016
             ^
.../spoofax-intellij/org.metaborg.jps/src/main/java/org/metaborg/intellij/jps/package-info.java:2: error: unmappable character (0xA9) for encoding US-ASCII
 * Copyright ?? 2015-2016
              ^
.../spoofax-intellij/org.metaborg.jps/src/main/java/org/metaborg/intellij/jps/PriorityURLClassLoader.java:22: error: cannot find symbol
import sun.misc.CompoundEnumeration;
               ^
  symbol:   class CompoundEnumeration
  location: package sun.misc
.../spoofax-intellij/org.metaborg.jps/src/main/java/org/metaborg/intellij/jps/PriorityURLClassLoader.java:262: error: cannot find symbol
        return new CompoundEnumeration<>(resources);
                   ^
  symbol:   class CompoundEnumeration
  location: class PriorityURLClassLoader
2 errors

It seems that the © character is failing the build (and the that the picked up encoding is US-ASCII).

PS: I guess the sun.misc problem is not associated with the encoding problem. Since JDK 9 hides internal packages, the project might not work with JDK thereof anyways.

Thanks for the report. Java 9 compatibility is fixed in 1c532fc, and the encoding issue should be fixed in 03cd50e.