pcj icon indicating copy to clipboard operation
pcj copied to clipboard

Compilation issue in RawString

Open ramkrish86 opened this issue 7 years ago • 3 comments

Just starting up with this library and trying to use it. Doing some learning. After I setup the project in IDE got a compilation issue at https://github.com/pmem/pcj/blob/master/src/main/java/lib/util/persistent/RawString.java#L35 The MemoryRegion is declared final but we do an assignment here. But while making or building there is no such error. If not, I can submit a PR for this.

ramkrish86 avatar May 23 '17 06:05 ramkrish86

Hi Ram, Thank you very much for pointing out the issue - we are surprised that this got past "make"! So you said that there is a compilation error in IDE, but no compilation error via "make"? Can you please tell us which IDE you are using, and what is the full text of the compilation error? Thanks! Lei

leifan89 avatar May 23 '17 16:05 leifan89

The final field RawString.region cannot be assigned

Seems the msg is right to me. But when I try to do the javac command line compilation using the targer/classes added to the class path then there is no compilation issue.

ramkrish86 avatar May 24 '17 05:05 ramkrish86

BTW am using Eclipse as my IDE.

ramkrish86 avatar May 24 '17 05:05 ramkrish86