This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 241653

Summary: Application does not compile
Product: java Reporter: jon80 <jon80>
Component: ProjectAssignee: Tomas Zezula <tzezula>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Windows 8   
Issue Type: TASK Exception Reporter:
Attachments: IDE log

Description jon80 2014-02-10 17:34:03 UTC
Product Version = NetBeans IDE 7.4 (Build 201310111528)
Operating System = Windows 8 version 6.2 running on x86
Java; VM; Vendor = 1.7.0_45
Runtime = Java HotSpot(TM) Client VM 24.45-b08

The following code snippet did not execute within Netbeans, although it compiled successfully within an advanced text editor i.e. TextPad.  
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author slyth_000
 */
public class FirstClass {
    
    public static void main (String... args)
    {
        int result = add(1,02);
        System.out.println(result);   
    }
    
    private static int add (int a, int b)
    {
        return a + b;
    }
    
}

I also missed a program from the recent projects menu since the last upgrade, and cannot figure out where it ended up.  I either deleted it accidentally or else it was deleted accidentally during the upgrade.  Alternatively it might be some configuration change which I am not yet aware about.
Comment 1 jon80 2014-02-10 17:34:07 UTC
Created attachment 144997 [details]
IDE log
Comment 2 Jiri Prox 2014-02-11 14:39:20 UTC
Can you please provide more info?
How did you try to run the code snippet? (as single file, as project ...)

Was there any error message?