#1411 closed enhancement (fixed)

Avoid inlining of the Reggie.VERSION constant

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: trivial Milestone: Reggie v4.40
Component: net.sf.basedb.reggie Keywords:
Cc:

Description

An constant string expression (like Reggie.VERSION) is copied by value to places where it is used during compilation. If it is used by multiple files then there is a potential problem when the constant is changed and the code is re-compiled since normally only the modified files are re-compiled. This may result in different values being used in different parts of Reggie.

Note! This is typically only a problem during development since a release will always compile all source code from scratch. But it can be very annoying...

Change History (1)

comment:1 by Nicklas Nordborg, 20 months ago

Resolution: fixed
Status: newclosed

In 6837:

Fixes #1411: Avoid inlining of the Reggie.VERSION constant

Call .toString() when definining the constant prevents it from being inlined.

Note: See TracTickets for help on using tickets.