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.
Summary: | Static non-final field runtime value different from declaration value. | ||
---|---|---|---|
Product: | debugger | Reporter: | ajh |
Component: | Java | Assignee: | Martin Entlicher <mentlicher> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
ajh
2016-02-23 07:18:40 UTC
More info: I created a basic Java Application (no Gradle, libgdx etc), with just the main class and another test class with a public static float (non-final). The problem does not occur, the static variable always correctly remains the value it is declared as. As another test, I closed the IDE, killed the Gradle daemon process and ensured no other java processes were running (for all users). Started the IDE again, ran 'Build and Clean'. Ran the project under the debugger and received the same incorrect value of 0.87f at runtime even though it is declared in code as 0.9f |