Fix Java convertToJson: remove invalid instanceof int check
Mahdi Naser Moghadasi
1ac6179
- Remove 'instanceof int' check (primitives cannot be used with instanceof)
- Integer wrapper class check handles both Integer objects and auto-boxed int primitives
- Fixes 'unexpected type' compilation error
Fix Java convertToJson to handle Object type
Mahdi Naser Moghadasi
b70b303
- Change convertToJson to accept Object parameter
- Use instanceof checks to handle int[], Integer, and int types
- Add fallback toString() for other types
- Fixes 'no suitable method found for convertToJson(Object)' error
Fix Java execution: add default return statement and convertToJson helper
Mahdi Naser Moghadasi
1a96512
- Add default return statement based on return type (int[] returns new int[0], int returns 0)
- Add convertToJson helper methods to Main class for int[] and int
- Improve return type inference to include 'Intersection' and 'Union' functions
- Fixes 'missing return statement' and 'cannot find symbol convertToJson' errors
Fix TypeScript error: ensure tempDir is not null before using in spawn
Mahdi Naser Moghadasi
6c820f4
Add multi-language support (Python, JavaScript, Java, C++)
Mahdi Naser Moghadasi
fe2a1b2
- Add language selector dropdown to CodeEditor
- Create execution API endpoints for JavaScript, Java, and C++
- Update Dockerfile to install Java (openjdk17) and C++ (g++) compilers
- Update code execution logic to route based on selected language
- Add syntax highlighting for all supported languages in Monaco and CodeMirror
- Update executeAndCheckWithLLM to support all languages
- Extract function names based on language syntax
- Update handleRun and handleSubmit to use language-aware execution