titan.EclipsePlug-ins issueshttps://gitlab.eclipse.org/eclipse/titan/titan.EclipsePlug-ins/-/issues2021-05-06T10:38:10Zhttps://gitlab.eclipse.org/eclipse/titan/titan.EclipsePlug-ins/-/issues/137jump to definition is sometimes jumping to the enclosing function2021-05-06T10:38:10ZEclipse Webmasterjump to definition is sometimes jumping to the enclosing function## Submitted by Kristof Szabados
Assigned to **Jeno Attila Balasko**
**[Link to original bug (#497133)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=497133)**
## Description
Jump to definition is not working correctly i...## Submitted by Kristof Szabados
Assigned to **Jeno Attila Balasko**
**[Link to original bug (#497133)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=497133)**
## Description
Jump to definition is not working correctly in some cases.
When the module is excluded, the cursor is not over a definition, or for some reason the module can not be identified.
In these cases the F3 functionality will jump to the beginning of the function it is invoked in.
This is not the right location to jump to, and also moves the cursor away from the place it was invoked from (users need to find their way back)
for example:
"
function f_functionName( )
{
var template integer valtozo := 5;
if(valueof(valtozo) == valueof(valtozo)) {
}
}
"
If the cursor is at "value_of" the F3 will jump to the name of the function.
Version: 5.5.0https://gitlab.eclipse.org/eclipse/titan/titan.EclipsePlug-ins/-/issues/139Open declaration sometimes does not work2021-05-06T10:39:44ZEclipse WebmasterOpen declaration sometimes does not work## Submitted by Kristof Szabados
**[Link to original bug (#497244)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=497244)**
## Description
Sometimes the open declaration functionality does not work.
The only output on the ...## Submitted by Kristof Szabados
**[Link to original bug (#497244)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=497244)**
## Description
Sometimes the open declaration functionality does not work.
The only output on the debug console is that, the module in the file could not be identified.
Can not be reproduced consistently, but some users have a higher likelyhood of experiencing this issue.
It might be interesting to mention, that opening a file from the search results window, seems to increase the likelyhood of the issue, compared to opening it from the navigator window.
And most of the time inserting and deleting a character can solve the issue for the actual file, but not always.
Version: 5.5.0https://gitlab.eclipse.org/eclipse/titan/titan.EclipsePlug-ins/-/issues/209in the oneM2M tests there is a situation where fields of the anytype type are...2021-05-06T11:21:32ZEclipse Webmasterin the oneM2M tests there is a situation where fields of the anytype type are not recognised in the Designer## Submitted by Kristof Szabados
**[Link to original bug (#511384)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=511384)**
## Description
After downloading the oneM2Mtester source codes I noticed a problem in anytype hand...## Submitted by Kristof Szabados
**[Link to original bug (#511384)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=511384)**
## Description
After downloading the oneM2Mtester source codes I noticed a problem in anytype handling.
In some cases fields of the anytype were reported as missing or invalid.
oneM2Mtester can be found here: https://git.onem2m.org/TST/ATS/tree/master
Version: 6.1.0https://gitlab.eclipse.org/eclipse/titan/titan.EclipsePlug-ins/-/issues/213Test that eclipse plug in handles modified template restrictions well2021-05-06T11:20:33ZEclipse WebmasterTest that eclipse plug in handles modified template restrictions well## Submitted by Bence Janos Szabo
**[Link to original bug (#511771)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=511771)**
## Description
All template restriction can be modified to all template restrictions when a templ...## Submitted by Bence Janos Szabo
**[Link to original bug (#511771)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=511771)**
## Description
All template restriction can be modified to all template restrictions when a template modifies another.
See:titan.core/function_test/Semantic_Analyser/template/TempRes_OK.ttcn
Version: 6.1.0https://gitlab.eclipse.org/eclipse/titan/titan.EclipsePlug-ins/-/issues/407report impossible connect and map statements2021-08-09T14:26:21ZEclipse Webmasterreport impossible connect and map statements## Submitted by Kristof Szabados
Assigned to **Bence Janos Szabo**
**[Link to original bug (#515533)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=515533)**
## Description
Tomas Urban reported in mantic CR 7607 an inter...## Submitted by Kristof Szabados
Assigned to **Bence Janos Szabo**
**[Link to original bug (#515533)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=515533)**
## Description
Tomas Urban reported in mantic CR 7607 an interesting case related to connect and map statements.
Currently this code is accepted:
"
type port P message { in integer; }
type component C { port P p; }
testcase TC() runs on C system C {
var C v_ptc := C.create;
connect(self:p, v_ptc:p);
}
"
But as the port does not have an out parameter list, it is not possible to actually send out any message on this port and so the connection should be reported as erroneous (or at least quality warning)
This should be done in the core and designer components.
Version: 6.1.0Miklos MagyariMiklos Magyarihttps://gitlab.eclipse.org/eclipse/titan/titan.EclipsePlug-ins/-/issues/232LogViewer unable to parse HelloWorld project log if DEBUG mask is enabled2021-05-06T13:13:16ZEclipse WebmasterLogViewer unable to parse HelloWorld project log if DEBUG mask is enabled## Submitted by fiannetti `@fiannetti`
Assigned to **Jeno Attila Balasko**
**[Link to original bug (#515559)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=515559)**
## Description
LogViewer unable to parse HelloWorld pr...## Submitted by fiannetti `@fiannetti`
Assigned to **Jeno Attila Balasko**
**[Link to original bug (#515559)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=515559)**
## Description
LogViewer unable to parse HelloWorld project log if DEBUG mask is enabled
The error message states that there's no MSC data for the log
Version: 6.1.0https://gitlab.eclipse.org/eclipse/titan/titan.EclipsePlug-ins/-/issues/245Broken indentation after "\\"2022-04-12T08:34:45ZEclipse WebmasterBroken indentation after "\\"## Submitted by viktor vereb
Assigned to **Jeno Attila Balasko**
**[Link to original bug (#519373)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=519373)**
## Description
Trying to use auto indentation with Ctrl+i, but t...## Submitted by viktor vereb
Assigned to **Jeno Attila Balasko**
**[Link to original bug (#519373)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=519373)**
## Description
Trying to use auto indentation with Ctrl+i, but the following line messes it up:
v_modified := f_int_replaceSubstrings(v_string, "\\", "");
We found, that "\\" somehow breaks the indentation, and every row after that starts at the 5th position.
Version: 5.5.0Miklos MagyariMiklos Magyarihttps://gitlab.eclipse.org/eclipse/titan/titan.EclipsePlug-ins/-/issues/250Eclipse plugin should allow syntax of package specification2021-08-09T08:03:08ZEclipse WebmasterEclipse plugin should allow syntax of package specification## Submitted by Bence Janos Szabo
**[Link to original bug (#520969)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=520969)**
## Description
Created attachment 269846
LanguageSpec.ttcn
See:
https://bugs.eclipse.org/bugs/s...## Submitted by Bence Janos Szabo
**[Link to original bug (#520969)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=520969)**
## Description
Created attachment 269846
LanguageSpec.ttcn
See:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=515564
Testfiles attached
**Attachment 269846**, "LanguageSpec.ttcn":
[LanguageSpec.ttcn](/uploads/0f4fbb0739e45a2908fa06cbf3e83a59/LanguageSpec.ttcn)
Version: 6.2.0https://gitlab.eclipse.org/eclipse/titan/titan.EclipsePlug-ins/-/issues/255Launcher buttons have old icons with brown orbit and rocket2021-05-06T13:26:45ZEclipse WebmasterLauncher buttons have old icons with brown orbit and rocket## Submitted by Jeno Attila Balasko
**[Link to original bug (#522226)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=522226)**
## Description
TITAN Single Mode Laucher, TITAN Parallel launcher and TITAN JNI launcher have t...## Submitted by Jeno Attila Balasko
**[Link to original bug (#522226)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=522226)**
## Description
TITAN Single Mode Laucher, TITAN Parallel launcher and TITAN JNI launcher have the old icon when Run configurations or Debud configurations is used.
See oorg.eclipse.titan.executor/plugin.xml,
for example
class="org.eclipse.titan.executor.executors.single.LaunchShortcutConfig"
description="Launch an execution in single mode" icon="icons/launch_single.gif"
TODO: Redesign icons/launch_xxx.gif
Version: 6.2.0https://gitlab.eclipse.org/eclipse/titan/titan.EclipsePlug-ins/-/issues/257multiple testcase choice2021-05-06T13:28:14ZEclipse Webmastermultiple testcase choice## Submitted by Jakov Kristian Krstulović
**[Link to original bug (#522338)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=522338)**
## Description
Created attachment 270214
selecting test cases via plugin/mctr_gui
When E...## Submitted by Jakov Kristian Krstulović
**[Link to original bug (#522338)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=522338)**
## Description
Created attachment 270214
selecting test cases via plugin/mctr_gui
When Execute prompt is shown (attachment - select test cases via plugin.PNG) user can select only one testcase/testset.
My suggestion is to enable selecting and running more than one testcase at same time to keep legacy behavior from mctr_gui (attachment - select TCs in mctr_gui.PNG). Users in our organization find it very strange that this is not supported via plug-in as they had routine to use it.
**Attachment 270214**, "selecting test cases via plugin/mctr_gui":
[Select_Test_Cases.zip](/uploads/2aa631f10dc4ae602d03bf920299c258/Select_Test_Cases.zip)
Version: 6.2.0https://gitlab.eclipse.org/eclipse/titan/titan.EclipsePlug-ins/-/issues/278Create automated test environment for dynamic test of ttcn2java compiler2021-11-03T10:20:43ZEclipse WebmasterCreate automated test environment for dynamic test of ttcn2java compiler## Submitted by Jeno Attila Balasko
Assigned to **Jeno Attila Balasko**
**[Link to original bug (#529608)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=529608)**
## Description
Automated regression test environment shou...## Submitted by Jeno Attila Balasko
Assigned to **Jeno Attila Balasko**
**[Link to original bug (#529608)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=529608)**
## Description
Automated regression test environment should be deployed in the Ericcson working environment:
1. ttcn2java build from CLI using eclipse in headless mode
2. run the generated java code from cli using eclipse in headless mode
3. Create regression test:
3.1. Map the regression test from titan.core/regression_test
3.2. Put the existing manual test under version control and integrate it into the regression test
4. Integrate the test under Jenkins
5. Document the whole process
Version: 6.3.0Adam KnappAdam Knapphttps://gitlab.eclipse.org/eclipse/titan/titan.EclipsePlug-ins/-/issues/308add support for JSON to the Java code generator2021-05-06T14:25:49ZEclipse Webmasteradd support for JSON to the Java code generator## Submitted by Kristof Szabados
**[Link to original bug (#553219)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=553219)**
## Description
Add support for JSON encoding/decoding to the Java code generator, similarly to wha...## Submitted by Kristof Szabados
**[Link to original bug (#553219)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=553219)**
## Description
Add support for JSON encoding/decoding to the Java code generator, similarly to what is already present on the C side.
Version: 6.6.0https://gitlab.eclipse.org/eclipse/titan/titan.EclipsePlug-ins/-/issues/309Main Controller in pure Java2021-05-06T14:26:48ZEclipse WebmasterMain Controller in pure Java## Submitted by Kristof Szabados
**[Link to original bug (#553220)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=553220)**
## Description
Create a version of the Main Controller that works purely in Java/Eclipse.
This ha...## Submitted by Kristof Szabados
**[Link to original bug (#553220)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=553220)**
## Description
Create a version of the Main Controller that works purely in Java/Eclipse.
This has several benefits:
- platform independence allows users to work on Windows.
(also reduces the cost of supporting several platforms)
- Can simplify the code of launch configurations used in eclipse as there is no need to communicate with external tools via command line.
- Can reduce the number and complexity of launch configurations for users as Java native MC can be controlled without command line interface
- Much better GUI is possible, as the Java native MC can have better connection interface.
- Enhanced information extraction, as the Java native MC could provide the user with additional dynamic information previously unavailable.
for example: visualizing PTC connection as the tests are running.
Version: 6.6.0https://gitlab.eclipse.org/eclipse/titan/titan.EclipsePlug-ins/-/issues/322ttcn2java: wrong handling of permutation in case of compatible integer templa...2021-05-06T14:34:22ZEclipse Webmasterttcn2java: wrong handling of permutation in case of compatible integer template arrays## Submitted by Jeno Attila Balasko
**[Link to original bug (#559512)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=559512)**
## Description
Created attachment 281594
example ttcn source code
The attached ttcn module con...## Submitted by Jeno Attila Balasko
**[Link to original bug (#559512)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=559512)**
## Description
Created attachment 281594
example ttcn source code
The attached ttcn module contains two testcases. They are almost identical.
The first testcase creates a template variable with a permutation value, then calls a function with arg type of template AI3. The function simple checks if the received variable is the expected or not ( converted into string):
type integer AI3[3];
testcase tc_array_allfrom_perm1_pass() runs on CT {
//This testcase does not use type compatibility
var template AI3 tl_AI3 := { permutation(1,*,3) };
log( "TC() local var tl_tcAI3: ", tl_AI3);
f_check( tl_AI3);
}
The second testcase creates a template variable of type compatible with the previous AI3. The value is the same as in the first testcase. Then the same function is called. It fails because ( as we can see from the logs ) the information about the permutation is not passed.From the log it trivial that the value was correct before the function call but the converted value arrived without the "permutaion"info.
tl_integerArray3 before function call: { permutation(1, *, 3) }
Function arg:{ 1, *, 3 }
setverdict(fail): none -> fail reason: "Expected: { permutation(1, *, 3) }, got: "{ 1, *, 3 }"", new component reason: "Expected: { permutation(1, *, 3) }, got: "{ 1, *, 3 }""
Source code and log are attached
**Attachment 281594**, "example ttcn source code":
[permTemplateAsFuncArgBug.ttcn](/uploads/8340d96b2486de133643082fdbb932b3/permTemplateAsFuncArgBug.ttcn)
Version: 6.6.1https://gitlab.eclipse.org/eclipse/titan/titan.EclipsePlug-ins/-/issues/328Semantic analyzer: false error message " `omit' value is not allowed in this ...2021-05-06T14:43:49ZEclipse WebmasterSemantic analyzer: false error message " `omit' value is not allowed in this context"## Submitted by Jeno Attila Balasko
**[Link to original bug (#559750)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=559750)**
## Description
Created attachment 281668
example ttcn source code (2nd file is required)
This ...## Submitted by Jeno Attila Balasko
**[Link to original bug (#559750)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=559750)**
## Description
Created attachment 281668
example ttcn source code (2nd file is required)
This false error message arrived as an exception (under semantic analyzis):
!ENTRY org.eclipse.titan.common 4 0 2020-01-31 14:21:35.760
!MESSAGE INTERNAL_ERROR: The following semantic error was reported on a non-existent location: `omit' value is not allowed in this context
!STACK 0
java.lang.Exception: The following semantic error was reported on a non-existent location: `omit' value is not allowed in this context
at org.eclipse.titan.common.logging.ErrorReporter.INTERNAL_ERROR(ErrorReporter.java:68)
at org.eclipse.titan.designer.AST.NULL_Location.reportSemanticError(NULL_Location.java:42)
at org.eclipse.titan.designer.AST.Type.checkThisValue(Type.java:1455)
at org.eclipse.titan.designer.AST.TTCN3.types.OctetString_Type.checkThisValue(OctetString_Type.java:130)
at org.eclipse.titan.designer.AST.ASN1.types.ASN1_Sequence_Type.checkThisValueSeq_A(ASN1_Sequence_Type.java:803)
at org.eclipse.titan.designer.AST.ASN1.types.ASN1_Sequence_Type.checkThisValue(ASN1_Sequence_Type.java:540)
at org.eclipse.titan.designer.AST.TTCN3.types.Referenced_Type.checkThisValue(Referenced_Type.java:373)
at org.eclipse.titan.designer.AST.TTCN3.templates.SpecificValue_Template.checkExpressionSelfReferenceTemplate(SpecificValue_Template.java:270)
at org.eclipse.titan.designer.AST.TTCN3.values.expressions.MatchExpression.checkExpressionSelfReference(MatchExpression.java:65)
at org.eclipse.titan.designer.AST.Type.checkThisValue(Type.java:1479)
at org.eclipse.titan.designer.AST.TTCN3.types.Boolean_Type.checkThisValue(Boolean_Type.java:127)
at org.eclipse.titan.designer.AST.TTCN3.definitions.FormalParameter.checkActualParameterValue(FormalParameter.java:568)
at org.eclipse.titan.designer.AST.TTCN3.definitions.FormalParameter.checkActualParameter(FormalParameter.java:517)
at org.eclipse.titan.designer.AST.TTCN3.definitions.FormalParameterList.checkActualParameterList(FormalParameterList.java:709)
at org.eclipse.titan.designer.AST.TTCN3.definitions.FormalParameterList.checkActualParameterList(FormalParameterList.java:634)
at org.eclipse.titan.designer.AST.ParameterisedSubReference.checkParameters(ParameterisedSubReference.java:105)
at org.eclipse.titan.designer.AST.Reference.getRefdAssignment(Reference.java:536)
at org.eclipse.titan.designer.AST.Reference.getRefdAssignment(Reference.java:475)
at org.eclipse.titan.designer.AST.TTCN3.statements.Function_Instance_Statement.check(Function_Instance_Statement.java:103)
at org.eclipse.titan.designer.AST.TTCN3.statements.Unknown_Instance_Statement.check(Unknown_Instance_Statement.java:141)
at org.eclipse.titan.designer.AST.TTCN3.statements.StatementBlock.check(StatementBlock.java:614)
at org.eclipse.titan.designer.AST.TTCN3.definitions.Def_Testcase.check(Def_Testcase.java:300)
at org.eclipse.titan.designer.AST.TTCN3.definitions.Def_Testcase.check(Def_Testcase.java:236)
at org.eclipse.titan.designer.AST.TTCN3.definitions.Definitions.check(Definitions.java:446)
at org.eclipse.titan.designer.AST.TTCN3.definitions.TTCN3Module.check(TTCN3Module.java:482)
at org.eclipse.titan.designer.AST.brokenpartsanalyzers.BrokenPartsChecker.generalChecker(BrokenPartsChecker.java:187)
at org.eclipse.titan.designer.AST.brokenpartsanalyzers.BrokenPartsChecker.doChecking(BrokenPartsChecker.java:69)
at org.eclipse.titan.designer.parsers.ProjectSourceSemanticAnalyzer.analyzeMultipleProjectsSemantically(ProjectSourceSemanticAnalyzer.java:401)
at org.eclipse.titan.designer.parsers.ProjectSourceParser.internalDoAnalyzeWithReferences(ProjectSourceParser.java:782)
at org.eclipse.titan.designer.parsers.ProjectSourceParser.access$4(ProjectSourceParser.java:678)
at org.eclipse.titan.designer.parsers.ProjectSourceParser$10.runInWorkspace(ProjectSourceParser.java:985)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:39)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:60)
**Attachment 281668**, "example ttcn source code (2nd file is required)":
[JsonDataAsn1OptionalBugTest.ttcn](/uploads/2a2c6863e847dd8d6edc81027625d302/JsonDataAsn1OptionalBugTest.ttcn)
Version: 6.6.1https://gitlab.eclipse.org/eclipse/titan/titan.EclipsePlug-ins/-/issues/330Semantic analyzer puts false error markers "Reference to a non-existent field...2021-05-06T14:44:55ZEclipse WebmasterSemantic analyzer puts false error markers "Reference to a non-existent field" onto an open type value## Submitted by Jeno Attila Balasko
**[Link to original bug (#559832)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=559832)**
## Description
Created attachment 281700
JSonData.asn : the first example file (data)
The sema...## Submitted by Jeno Attila Balasko
**[Link to original bug (#559832)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=559832)**
## Description
Created attachment 281700
JSonData.asn : the first example file (data)
The semantic analyser of the titan eclipse plugin puts two error markers on the file OpenTypeBug.ttcn, altought the files can be compiled successfully by the cpp code generator.
The markers:
Description Resource Path Location Type
Reference to a non-existent field `iNTEGER' in union value for type `@JsonData.ProtocolElem-Field.JsonData.inst1.val[1]' OpenTypeBug.ttcn /TR_2019_12_ttcn2cpp/src/ASN_OpentypeBug.ttcn line 26 on-the-fly semantic markers
Reference to a non-existent field `iA5String' in union value for type `@JsonData.ProtocolElem-Field.JsonData.inst1.val[1]' OpenTypeBug.ttcn /TR_2019_12_ttcn2cpp/src/ASN_OpentypeBug.ttcn line 27 on-the-fly semantic markers
**Attachment 281700**, "JSonData.asn : the first example file (data)":
[JsonData.asn](/uploads/144137bf650f39c5e7e14e2b14c3d1c4/JsonData.asn)
Version: 6.6.1https://gitlab.eclipse.org/eclipse/titan/titan.EclipsePlug-ins/-/issues/332ASN.1 false semantic error on generated information object type "oneErrorObje...2021-05-06T14:48:05ZEclipse WebmasterASN.1 false semantic error on generated information object type "oneErrorObject-Type"## Submitted by Jeno Attila Balasko
**[Link to original bug (#560000)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=560000)**
## Description
Created attachment 281768
Example: X682.asn
This TR is in close connection with...## Submitted by Jeno Attila Balasko
**[Link to original bug (#560000)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=560000)**
## Description
Created attachment 281768
Example: X682.asn
This TR is in close connection with titan.core [bug 528313](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=528313) which is corrected in 2017.
In the attached file, the commented line "errorInfo oneErrorObject-Type : foobar" has a semantic marker as follows:
Reference to a non-existent alternative `oneErrorObject-Type' in CHOICE value for type `@X682.ErrorReturn.errors.oftype.errorInfo[1]' X682.asn /Regression_Test_java/src/EncodeDecode/BER line 80 on-the-fly semantic markers
The reason is that the semantic analyzer does not take into account that the oneErrorObject name will be changed into oneErrorObject-Type (see also the cpp compiler log).
### ASN1.code detail:
~~~
ERROR-CLASS ::= CLASS
{
&category PrintableString(SIZE(1)),
&code INTEGER,
&Type DEFAULT INTEGER
}
WITH SYNTAX {&category &code [&Type]}
ErrorSet ERROR-CLASS ::=
{
{"A" 1 [1] INTEGER} |
{"A" 2 [1] VisibleString} |
{"B" 1 [1] PrintableString} |
{"B" 2 [1] BOOLEAN} |
oneErrorObject
}
oneErrorObject ERROR-CLASS ::= { "C" 3 ENUMERATED{foobar} }
ErrorReturn ::= SEQUENCE
{
errorCategory ERROR-CLASS.&category ({ErrorSet}) OPTIONAL,
errors SEQUENCE OF SEQUENCE
{
errorCode ERROR-CLASS.&code({ErrorSet}{@errorCategory}),
errorInfo [99] ERROR-CLASS.&Type({ErrorSet}{@errorCategory,@.errorCode}) -- line 51
} OPTIONAL
}
...
errorReturn2 ErrorReturn ::=
{
errorCategory "3",
errors
{
{
errorCode 3,
errorInfo oneErrorObject-Type : foobar --error marker on this line
}
}
}
~~~
### Remark:
Perhaps the cpp compilation log helps:
~~~
../src/X682.asn: In ASN.1 module `X682':
../src/X682.asn:45: In type assignment `ErrorReturn':
../src/X682.asn:51: In constraint #1 of type `open type':
../src/X682.asn:51: warning: Strange alternative name (`errorSet-1-Type') was added to open type `@X682.ErrorReturn.errors.SEQUENCE.errorInfo.type'
../src/X682.asn:51: warning: Strange alternative name (`errorSet-2-Type') was added to open type `@X682.ErrorReturn.errors.SEQUENCE.errorInfo.type'
../src/X682.asn:51: warning: Strange alternative name (`errorSet-3-Type') was added to open type `@X682.ErrorReturn.errors.SEQUENCE.errorInfo.type'
../src/X682.asn:51: warning: Strange alternative name (`errorSet-4-Type') was added to open type `@X682.ErrorReturn.errors.SEQUENCE.errorInfo.type'
../src/X682.asn:51: warning: Strange alternative name (`oneErrorObject-Type') was added to open type `@X682.ErrorReturn.errors.SEQUENCE.errorInfo.type'
~~~
**Attachment 281768**, "Example: X682.asn":
[X682.asn](/uploads/bda871990d2884661af685c64709ebc5/X682.asn)
Version: 6.6.1https://gitlab.eclipse.org/eclipse/titan/titan.EclipsePlug-ins/-/issues/334Semantic analyzer: false error message on encvalue(x,"","JSON") where x is BI...2021-05-06T14:51:19ZEclipse WebmasterSemantic analyzer: false error message on encvalue(x,"","JSON") where x is BIT STRING## Submitted by Jeno Attila Balasko
Assigned to **Arpad Lovassy**
**[Link to original bug (#560028)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=560028)**
## Description
Created attachment 281780
JsonBasicASN1EncDecTes...## Submitted by Jeno Attila Balasko
Assigned to **Arpad Lovassy**
**[Link to original bug (#560028)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=560028)**
## Description
Created attachment 281780
JsonBasicASN1EncDecTest1.ttcn
If there is an asn1 type definition:
`Asn1-bs ::= BIT STRING`
and it is used in a ttcn module:
~~~
testcase tc_asn1_bs2bs_bug() runs on CT {
var Asn1_bs x := '01'B, d;
var bitstring encoded2 := encvalue(x, "", "JSON");
var bitstring expected := '0010 0010 00110000 00110001 0010 0010'B;// "01"
f_compare_bitstring(encoded2,expected);
}
type component CT {}
~~~
then the line with `encode()` is marked with this semantic error marker:
No coding rule specified for type `bitstring' JsonBasicASN1EncDecTest1.ttcn /TR_2019_12_ttcn2cpp/src line 73 on-the-fly semantic markers
Remark: The code can be compiled for cpp and run with success. Code attached.
**Attachment 281780**, "JsonBasicASN1EncDecTest1.ttcn":
[JsonBasicASN1EncDecTest1.ttcn](/uploads/478b975240832eb20bfb551d150f1666/JsonBasicASN1EncDecTest1.ttcn)
Version: 6.6.1https://gitlab.eclipse.org/eclipse/titan/titan.EclipsePlug-ins/-/issues/336Support for ETSI's JSON module2022-06-21T10:48:01ZEclipse WebmasterSupport for ETSI's JSON module## Submitted by Arpad Lovassy
Assigned to **Arpad Lovassy**
**[Link to original bug (#561106)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=561106)**
## Description
Implementing the same JSON features as in titan.core
S...## Submitted by Arpad Lovassy
Assigned to **Arpad Lovassy**
**[Link to original bug (#561106)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=561106)**
## Description
Implementing the same JSON features as in titan.core
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=553584https://gitlab.eclipse.org/eclipse/titan/titan.EclipsePlug-ins/-/issues/338Big unicode characters in TitanUniversalCharString2021-05-06T14:53:23ZEclipse WebmasterBig unicode characters in TitanUniversalCharString## Submitted by Arpad Lovassy
Assigned to **Arpad Lovassy**
**[Link to original bug (#561795)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=561795)**
## Description
In Java the biggest unicode codepoint is 10FFFF, while...## Submitted by Arpad Lovassy
Assigned to **Arpad Lovassy**
**[Link to original bug (#561795)](https://bugs.eclipse.org/bugs/xmlrpc.cgishow_bug.cgi?id=561795)**
## Description
In Java the biggest unicode codepoint is 10FFFF, while in TTCN-3 the biggest universal charstring is (FF,FF,FF,FF), so unicode characters above 10FFFF must be treated differently