Java Repl Opens Main.class Instead of Main.java When Not Logged In

Problem description: When accessing a Java project (Repl), the file that opens by default differs based on the user’s login status. If logged in, the IDE opens the Main.java file (source code), but when not logged in, it unexpectedly opens the Main.class file (compiled bytecode).

Expected behavior: The IDE should consistently open the Main.java file (or the primary source code file) regardless of the user’s login status. This consistency is important for a predictable user experience and to ensure users are directed to the editable source code, not the compiled bytecode.

Actual behavior: When logged in, the IDE correctly opens the Main.java file. However, when not logged in, it opens the Main.class file, which is not standard for source code editing and may lead to confusion or unintended exposure of compiled code.

Steps to reproduce: 1. Log in and navigate to a Java project. Observe that the Main.java file opens by default.
2. Log out of Replit.com or open the same Java project in an incognito/private browsing window without logging in. Notice that the Main.class file opens instead of Main.java.

Bug appears at this link: https://replit.com/@LordOfAlg/QueueJava

Browser: Chrome, Safari
OS: Mac OS, iOS
Device (Android, iOS, NA leave blank): iOS
Desktop app version (Avatar menu->“Version”) or NA:
Plan (Free, Replit Core): Free

1 Like

Thanks @LordOfAlg. I’ll get it reported to the team.

2 Likes

This should be fixed now @LordOfAlg.

1 Like

Thank you for the quick fix! I’ve checked and can confirm the issue with the Java Repl file opening behavior is now resolved. Really appreciate your prompt support!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.