View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005082 | Open CASCADE | OCCT:WOK | public | 2004-01-23 17:40 | 2012-01-17 17:29 |
Reporter | Assigned To | ||||
Priority | normal | Severity | trivial | ||
Status | closed | Resolution | fixed | ||
OS | All | ||||
Fixed in Version | 5.1.2 | ||||
Summary | 0005082: Some corrections and improvements in WOK Java extractor. | ||||
Description | Several problems have been corrected and some improvements have been introduced: - Processing of the Standard_Transient subclasses (i.e. those manipulated by handle) have been corrected. This has been achieved with introducing a new base Java class jcas.Transient (in the jcas nocdlpack), which extends jcas.Object. The latter remains a base class for all classes manipulated by value as well as Standard_Storable subclasses. Redundant methods IsKind() and DynamicType() of former jcas.Object have been removed. This allows now to correctly extract classes of the Standard package. Some limitation remains for Standard_Persistent subclasses (see below). - The extractor now correctly extracts classes without default constructor. This requirement does not persist anymore. If the null object is passed from C++ to Java (what is impossible in normal case) then an exception is thrown. - Processing of large interface unit(s) declared in the jni has been improved. In the past, the list of java files passed to the java compiler might lead to the command line overflow (more than 65Kb) what resulted in failed compilation. Now this has been corrected and several compilations are launched if necessary. - Dependency chain between generated .java, .class, .h and .cxx files has been created. WOK now generates a dependency chain between generated files so that if some classes become out of extraction scope (e.g. removed from the interface unit) their generated files will be removed. - Command line to launch the java compiler has been corrected - it does not include redundant rt.jar anymore (this option was simply ignored in the past). - Generated .h files are now put into the drv directory of the unit instead of common inc directory of the workbench. Thus, packaging has been improved. WOK User's Guide has been extended and describes now how to use the JNI extractor. Remaining limitation: WOK JNI extractor is still not able to correctly process classes inheriting Standard_Persistent. In fact, in Open CASCADE they form a hierarchy similar to one of Standard_Transient subsclasses, i.e. Pack_Class and Handle_Pack_Class. JNI today considers Standard_Persistent subclasses as classes manipulated by value, not by handle, and therefore creates invalid *_java.cxx files. NOTE1. As a non-regression test the compilation of the standard Java sample is suggested. NOTE2. This bug fix originates from pre-sales for the GTISoft company (contact RLN for details). | ||||
Additional information and documentation updates | Documentation remark, added by RLN 2004-01-27 16:16:45: New features: (See attachment BUG-5082.zip) Improvements: (See attachment BUG-5082.zip) Changes: (See attachment BUG-5082.zip) Modified entities: (See attachment BUG-5082.zip) | ||||
Tags | No tags attached. | ||||
Test case number | |||||
Date Modified | Username | Field | Change |
---|---|---|---|
2004-01-23 17:42 | bugmaster | Assigned To | bugmaster => rln |
2004-01-23 17:42 | bugmaster | Status | new => assigned |
2004-01-27 18:11 |
|
CC | => vtn, nkv, vsv, imv |
2004-01-28 16:23 |
|
Status | assigned => resolved |
2004-03-03 09:27 | bugmaster | Status | resolved => closed |
2004-03-03 09:27 | bugmaster | Fixed in Version | => 5.1.2 |
2004-03-03 09:27 | bugmaster | Resolution | @0@ => fixed |
2012-01-17 17:29 |
|
Assigned To | rln => |
2012-01-17 17:29 |
|
Description Updated | |
2012-01-17 17:29 |
|
Additional Information Updated |