Compilation error in ChapterElement.java

3 posts / 0 new
Last post
Mebus
Offline
Joined: 2017-07-13
Compilation error in ChapterElement.java

Hallo,

I am trying to compile JModelica on Fedora 24, 64bit. Compilation only worked after changing this:

https://gist.github.com/Mebus/4b6dccb5a43ff7c1a39d5e75996a44d7

Is this a bug or am I doing something wrong?

(SVN: 2.0.1:9993)

Mebus

 

janssen
Offline
Joined: 2012-04-17
It's a bug

Just hit this myself.  It's a bug.  The source files are now UTF-8, and contain non-ASCII characters.  But build-base.xml hasn't been updated to add the -encoding flag to javac, so it defaults to ASCII, and chokes on the non-ASCII characters.  The "encoding" flag to the "javac" task should be used (in build-base.xml) to specify the UTF-8 encoding of the source files.

janssen
Offline
Joined: 2012-04-17
fixed in 2.1

This appears to be fixed in 2.1.

 

Bill

Login or register to post comments