PrimalScript Crashes When Opening Java File

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 9 years and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
sblaylock
Posts: 41
Last visit: Thu Jun 02, 2022 10:25 am

PrimalScript Crashes When Opening Java File

Post by sblaylock »

When trying to open the CSVToBean.java file (OpenCSV 2.3), I get the PrimalScript 2014 has stopped working message.

If I create a new .java file in PrimalScript and paste the code in I get the same error.
However, I can open other .java files from OpenCSV, and I can open the CSVToBean.java file fine in Eclipse and other java IDEs.

I couldn't attach a .java file here, so I've changed the extension to .txt. Oddly enough, if I try to open the .txt file in PrimalScript it opens fine.

Install: PSR14Setup_7.0.53_102614_x64
OS: Win 8.1 Pro 64Bit
Hardware: Lenovo X230 16GB RAM, 256SSD with ~40GB Free.

Scott.
Attachments
CsvToBean.txt
Change extension to .java for testing.
(3.88 KiB) Downloaded 207 times
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: PrimalScript Crashes When Opening Java File

Post by davidc »

I was able to confirm the issue.

[UPDATE] I was able to isolate the cause. The crash is caused by the Template class declaration:

public class CsvToBean<T>

David
David
SAPIEN Technologies, Inc.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: PrimalScript Crashes When Opening Java File

Post by davidc »

If you need to edit the file within PrimalScript while we resolve the issue you can temporarily comment out the <T> from the class definition.

David
David
SAPIEN Technologies, Inc.
User avatar
sblaylock
Posts: 41
Last visit: Thu Jun 02, 2022 10:25 am

Re: PrimalScript Crashes When Opening Java File

Post by sblaylock »

Thanks for the quick response.

Glad you were able to find the issue and provide a workaround.

Scott.
This topic is 9 years and 4 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.