This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
> C:\GCJ\SWT2.1.1\src>gcj -c org\eclipse\swt\custom\*.java
> ./org/eclipse/swt/custom/DisplayRenderer.java:66: error: Type `LineCache'
> not fo
> und in the declaration of the local variable `lineCache'.
> LineCache lineCache = parent.internalGetLineCache();
>
That's one of the changes you need to make to SWT, before it compiles properly with
GCJ.:
-------------------------
DisplayRenderer.java 66
-------------------------
Take out line:
//X LineCache lineCache = parent.internalGetLineCache();
The next one you may run into, could be:
-------------------------
TableCursor.java 407-418
-------------------------
Change the return type for the method:
//X void traverse(Event event) {
boolean traverse(Event event) {
switch (event.detail) {
case SWT.TRAVERSE_ARROW_NEXT :
case SWT.TRAVERSE_ARROW_PREVIOUS :
case SWT.TRAVERSE_RETURN :
event.doit = false;
return true; //X
}
event.doit = true;
return true; //X
}
Depending on how you compile the jni support, you may have to make additional
changes.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |