Hello all,
I’m running into a strange compilation issue during bootstrap on AZ-neo-3.12q.
Only on my local, the generated code is giving me char[] instead of byte[] for patternDefinition, and that leads to these errors:
char[] cannot be converted to byte[]
byte[] cannot be converted to char[]
The errors come from:
RecurringDataHelper
SimpleRecurrencePatternHelper
and the model rows (SiteRecurrenceDataRow, SiteRsrcRecurrenceDataRow)
What’s confusing is — my teammates don’t see this issue. Their codegen still produces byte[], but mine suddenly switched to char[].
Has anyone seen this before?
Is there some local codegen/XSD/JAXB cache or config that could cause datatype differences during generation?
Any pointers on where to check or what to clean/reset would really help. 🙏
here are the logs
injectCode:
compile:
[javac] Compiling 6030 source files to C:\views\AZ-neo-3.12q\tomcat\deploy\one\WEB-INF\one_modules\one.jar
[javac] C:\views\AZ-neo-3.12q\server\src\com\transcendsys\platform\server\vc\helper\RecurringDataHelper.java:177: error: incompatible types: char[] cannot be converted to byte[]
[javac] patternDefinition = siteRecurrenceDataRow.getPatternDefinition();
[javac] ^
[javac] C:\views\AZ-neo-3.12q\server\src\com\transcendsys\platform\server\vc\helper\RecurringDataHelper.java:553: error: incompatible types: byte[] cannot be converted to char[]
[javac] row.setPatternDefinition(getSimpleRecurrencePatternBytes(simpleRecurrencePattern));
[javac] ^
[javac] C:\views\AZ-neo-3.12q\server\src\com\transcendsys\platform\server\timeline\populator\SimpleRecurrencePatternHelper.java:42: error: incompatible types: char[] cannot be converted to byte[]
[javac] byte[] xmlBytes = row.getPatternDefinition();
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use or override a deprecated API that is marked for removal.
[javac] Note: Recompile with -Xlint:removal for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
[javac] 3 errors
BUILD FAILED
C:\views\INSTAN~1\ib-branches\Neo3.10-rb\build.xml:1340: The following error occurred while executing this line:
C:\views\INSTAN~1\ib-branches\Neo3.10-rb\build.xml:1361: The following error occurred while executing this line:
C:\views\AZ-neo-3.12q\install-staging\build.xml:1422: The following error occurred while executing this line:
C:\views\AZ-neo-3.12q\install-staging\build.xml:2827: The following error occurred while executing this line:
C:\views\AZ-neo-3.12q\install-staging\build.xml:2874: The following error occurred while executing this line:
C:\views\AZ-neo-3.12q\server\build.xml:211: The following error occurred while executing this line:
C:\views\AZ-neo-3.12q\server\build.xml:217: The following error occurred while executing this line:
C:\views\AZ-neo-3.12q\server\build.xml:993: The following error occurred while executing this line:
C:\views\AZ-neo-3.12q\server\PlatformCoreModels\build.xml:168: The following error occurred while executing this line:
C:\views\AZ-neo-3.12q\install-staging\build-macros.xml:43: Compile failed; see the compiler error output for details
-------------------------
FAILED
-------------------------
@javamk - Have you performed a clean build to test whether that fixes the issue? You can also try "Get Revision" then "Force Operation" on both of these files. Then attempt to build again. This will ensure you have the latest file from Perforce. If it still fails, I would look to perform a clean build from root. There should not be any local codegen/XSD/JAXB cache or config that is causing this issue and there hasn't been a change to these files in quite sometime, so something odd definitely is causing an issue.