Konloch / Konloch/bytecode-viewer
Javac Error
- Dominant language
- Java
- Stars
- 15.6k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
Hi, when you save to the class file, it doesn't locate Javac and gives this error.
Please send this error log to https://github.com/Konloch/bytecode-viewer/issues or Konloch at https://the.bytecode.club or konloch@gmail.com
If you hold appropriate legal rights to the relevant class/jar/apk file please include that as well.
Bytecode Viewer Version: 2.13.1 [Fat Jar], OS: Windows 10, Java: 25.0.1
java.util.concurrent.ExecutionException: java.nio.file.InvalidPathException: Illegal char <:> at index 0: ::{2C7DDECF-7A8E-48A5-A744-8F45D20FB1A9}
at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:124)
at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:193)
at the.bytecode.club.bytecodeviewer.gui.components.FileChooser.create(FileChooser.java:48)
at the.bytecode.club.bytecodeviewer.gui.components.FileChooser.create(FileChooser.java:43)
at the.bytecode.club.bytecodeviewer.GlobalHotKeys.lambda$keyPressed$2(GlobalHotKeys.java:109)
at java.base/java.lang.Thread.run(Thread.java:1474)
Caused by: java.nio.file.InvalidPathException: Illegal char <:> at index 0: ::{2C7DDECF-7A8E-48A5-A744-8F45D20FB1A9}
at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:191)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:142)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:46)
at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:203)
at java.base/java.io.File.toPath(File.java:2099)
at com.github.weisj.darklaf.ui.filechooser.DarkFileChooserUI$DarkFileView.getIcon(DarkFileChooserUI.java:378)
at java.desktop/javax.swing.JFileChooser.getIcon(JFileChooser.java:1614)
at java.desktop/javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxRenderer.getListCellRendererComponent(MetalFileChooserUI.java:947)
at com.github.weisj.darklaf.ui.list.DarkListUIBridge.updateLayoutState(DarkListUIBridge.java:827)
at com.github.weisj.darklaf.ui.list.DarkListUIBridge.maybeUpdateLayoutState(DarkListUIBridge.java:783)
at com.github.weisj.darklaf.ui.list.DarkListUIBridge$Handler.valueChanged(DarkListUIBridge.java:2483)
at java.desktop/javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:231)
at java.desktop/javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:206)
at java.desktop/javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:258)
at java.desktop/javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:459)
at java.desktop/javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:469)
at java.desktop/javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:513)
at java.desktop/javax.swing.JList.setSelectedIndex(JList.java:2232)
at java.desktop/javax.swing.plaf.basic.BasicComboPopup.setListSelection(BasicComboPopup.java:1281)
at java.desktop/javax.swing.plaf.basic.BasicComboPopup$Handler.itemStateChanged(BasicComboPopup.java:1097)
at java.desktop/javax.swing.JComboBox.fireItemStateChanged(JComboBox.java:1257)
at java.desktop/javax.swing.JComboBox.selectedItemChanged(JComboBox.java:1318)
at java.desktop/javax.swing.JComboBox.contentsChanged(JComboBox.java:1365)
at java.desktop/javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:127)
at java.desktop/javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.setSelectedItem(MetalFileChooserUI.java:1104)
at java.desktop/javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.addItem(MetalFileChooserUI.java:1069)
at java.desktop/javax.swing.plaf.metal.MetalFileChooserUI.doDirectoryChanged(MetalFileChooserUI.java:717)
at java.desktop/javax.swing.plaf.metal.MetalFileChooserUI$5.propertyChange(MetalFileChooserUI.java:806)
at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
at java.desktop/java.awt.Component.firePropertyChange(Component.java:8670)
at java.desktop/javax.swing.JFileChooser.setCurrentDirectory(JFileChooser.java:611)
at java.desktop/javax.swing.JFileChooser.(JFileChooser.java:364)
at java.desktop/javax.swing.JFileChooser.(JFileChooser.java:310)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:328)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1090)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614)
... 1 more
Contributor guide
Research direction
Reproduce the save-to-class flow on Windows with the reported Java version, then start at FileChooser.java lines 43-48 and the GlobalHotKeys.java entry point at line 109. Confirm that the flow completes without the reported InvalidPathException when the file chooser handles the selected directory.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100