Community
Participate
Working Groups
F1 Win2000 Japanese I have created a compilation unit that is named with Japanese characters. The cu has a public main type with the same name. I will attach the cu. Attempting to save this cu results in the following exception: Java Model Exception: Java Model Status [?? does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException(Java Element.java:501) at org.eclipse.jdt.internal.core.JavaElement.openHierarchy(JavaElement.j ava:530) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement. java:309) at org.eclipse.jdt.internal.core.SourceType.getSuperclassName(SourceType .java:250) at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.subtypesInclude SupertypeOf(TypeHierarchy.java:1161) at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffectedByTyp e(TypeHierarchy.java:1032) at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffectedByOpe nable(TypeHierarchy.java:983) at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffected(Type Hierarchy.java:807) at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffectedByChi ldren(TypeHierarchy.java:820) at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffectedByPac kageFragment(TypeHierarchy.java:889) at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffected(Type Hierarchy.java:804) at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffectedByChi ldren(TypeHierarchy.java:820) at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffectedByPac kageFragmentRoot(TypeHierarchy.java:939) at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffected(Type Hierarchy.java:802) at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffectedByChi ldren(TypeHierarchy.java:820) at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffectedByJav aProject(TypeHierarchy.java:871) at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffected(Type Hierarchy.java:800) at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffectedByChi ldren(TypeHierarchy.java:820) at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffectedByJav aModel(TypeHierarchy.java:836) at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.isAffected(Type Hierarchy.java:798) at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.elementChanged( TypeHierarchy.java:321) at org.eclipse.jdt.internal.core.JavaModelManager.fire(JavaModelManager. java:657) at org.eclipse.jdt.internal.core.DeltaProcessor.resourceChanged(DeltaPro cessor.java:1097) at org.eclipse.core.internal.events.NotificationManager$1.run(Notificati onManager.java:128) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatfo rm.java:802) at org.eclipse.core.runtime.Platform.run(Platform.java:416) at org.eclipse.core.internal.events.NotificationManager.notify(Notificat ionManager.java:143) at org.eclipse.core.internal.events.NotificationManager.broadcastChanges (NotificationManager.java:67) at org.eclipse.core.internal.resources.Workspace.broadcastChanges(Worksp ace.java:133) at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace. java:741) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1366 ) at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOp eration.java:78) at org.eclipse.ui.texteditor.AbstractTextEditor.performSaveOperation(Abs tractTextEditor.java:2019) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.performS aveOperation(CompilationUnitEditor.java:614) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.doSave(C ompilationUnitEditor.java:662) at org.eclipse.ui.internal.EditorManager$10.run(EditorManager.java:960) at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalCont ext.java:296) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:249) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDi alog.java:335) at org.eclipse.ui.internal.EditorManager.runProgressMonitorOperation(Edi torManager.java:838) at org.eclipse.ui.internal.EditorManager.saveEditor(EditorManager.java:9 65) at org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:1 945) at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:32) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(Act ionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0(ActionContri butionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handle Event(ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1085) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1068) at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoa der.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:200) at org.eclipse.core.launcher.Main.run(Main.java:643) at org.eclipse.core.launcher.Main.main(Main.java:476)
Created attachment 1018 [details] CompilationUnit containing Japanese characters
C:\jdk1.4.1_b11\jdk1.4.1\bin>java -version java version "1.4.1-beta" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1- Java HotSpot(TM) Client VM (build 1.4.1-beta-b11, mixed mode)
Could you please zip this cu and provide the zip file? I think there is a conversion encoding problem with the attachment. The name of the CU is ??. We lost the Japanese characters in this conversion. Are you using a Japanese encoding as the platform default encoding?
In order to reproduce this PR, we need your test case in a zip file. Please attach the zip file to this PR. Thanks.
I will get the zip on Tuesday.
Please attach the zip file as soon as you get it. Without a valid test case, I cannot reproduce it.
Winzip will not accept the file to add to an archive...I will see what I can do.
What encoding are you using in Window>Preferences>Workbench>Work in progress>Text File Encoding?
Created attachment 1092 [details] Zip of CopyOf.java
Did you try again with the latest integration build? If yes, did you get the same problem?
Still does work on build 20020529. Two test cases: On a Japanese win 2000 machine, create a shortcut to eclipse.exe Copy the first 2 Japanese characters after the eclipse name (first one looks like a big ^) Create a method in a class with this name Will not compile (errors shown in task list) Create a class called A Refactor to rename using the Japanese characters Paste the japanese characters into the name of the class (they had been changed to ?? on creation) Save You have errors (Syntax error on token ?) Paste some methods from another class Java model exception
That should be does NOT work on 20020529
Which encoding are you using in the Workbench preferences?
The problem has changed...the machine we had was using the wrong locale. The encoding is the default encoding (MS932). The current problem is the compilation units are created on disk, but no editor can be opened on them as you get "****.java does not exist. John W and I are working on the problem...appears to be further down then your stuff. We will likely move this bug.
Appears to be a problem with our install...sorry about the wasted time.