MantisBT - VTK | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0006723 | VTK | (No Category) | public | 2008-04-07 06:41 | 2009-02-03 11:21 |
Reporter | Julian Ibarz | ||||
Assigned To | |||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | ||||
Project | |||||
Type | |||||
Summary | 0006723: [Wrapping JAVA of VTK] Bug with methods containing character '_' | ||||
Description | The JNI library replace all "_" substrings in function names by "_1" and the parser of VTK doesn't do this so this error occurs : Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: vtk.vtkSelection.PROCESS_ID_36()J at vtk.vtkSelection.PROCESS_ID_36(Native Method) at vtk.vtkSelection.PROCESS_ID(vtkSelection.java:471) at testvtk.CascadeActorManager.selectOnSurface(CascadeActorManager.java:142) at testvtk.TestRubberBand$RubberBandHelper.doSelectionVisible(TestRubberBand.java:71) at testvtk.TestRubberBand$RubberBandHelper.mouseReleased(TestRubberBand.java:64) at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273) at java.awt.Component.processMouseEvent(Component.java:6038) at java.awt.Component.processEvent(Component.java:5803) at java.awt.Component.dispatchEventImpl(Component.java:4410) at java.awt.Component.dispatchEvent(Component.java:4240) at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121) BUILD STOPPED (total time: 12 seconds) Because the real name expected by the JNI is vtk.vtkSelection.PROCESS_1ID_36 and not vtk.vtkSelection.PROCESS_ID_36. This is a program that can cause this : import vtk.vtkSelection; public class BugPROPID { static { System.out.println(System.getProperty("java.library.path")); System.loadLibrary("vtkCommonJava"); System.loadLibrary("vtkFilteringJava"); System.loadLibrary("vtkIOJava"); System.loadLibrary("vtkImagingJava"); System.loadLibrary("vtkGraphicsJava"); System.loadLibrary("vtkRenderingJava"); } public static void main(String[] args) { vtkSelection selection = new vtkSelection(); System.out.println("TEST : " + selection.PROP_ID()); } } I have made a patch to fix it (it add '1' after all '_' in name methods and name classes). | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://www.vtk.org/Bug/file/6392/underscore.patch ![]() https://www.vtk.org/Bug/file/6393/bug.patch ![]() https://www.vtk.org/Bug/file/6574/escapeMethodNameJava.patch ![]() https://www.vtk.org/Bug/file/6984/escapeMethodNameJava-2.patch | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2008-04-07 06:41 | Julian Ibarz | New Issue | |||
2008-04-07 06:41 | Julian Ibarz | File Added: underscore.patch | |||
2008-04-07 06:54 | Julian Ibarz | File Added: bug.patch | |||
2008-04-07 06:55 | Julian Ibarz | Note Added: 0011076 | |||
2008-04-28 03:43 | Jerome Robert | Note Added: 0011562 | |||
2008-07-03 04:35 | dbarbier | File Added: escapeMethodNameJava.patch | |||
2008-07-03 04:39 | dbarbier | Note Added: 0012603 | |||
2009-01-12 05:03 | dbarbier | File Added: escapeMethodNameJava-2.patch | |||
2009-01-12 05:07 | dbarbier | Note Added: 0014527 | |||
2009-02-03 11:21 | Jeff Baumes | Note Added: 0014764 | |||
2009-02-03 11:21 | Jeff Baumes | Status | backlog => closed | ||
2009-02-03 11:21 | Jeff Baumes | Resolution | open => fixed | ||
2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|